    001    /*
    002     * Copyright 2009 Red Hat, Inc.
    003     * Red Hat licenses this file to you under the Apache License, version
    004     * 2.0 (the "License"); you may not use this file except in compliance
    005     * with the License.  You may obtain a copy of the License at
    006     *    http://www.apache.org/licenses/LICENSE-2.0
    007     * Unless required by applicable law or agreed to in writing, software
    008     * distributed under the License is distributed on an "AS IS" BASIS,
    009     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
    010     * implied.  See the License for the specific language governing
    011     * permissions and limitations under the License.
    012     */
    013
    014    package org.hornetq.api.core;
    015
    016    /**
    017     * Constants representing pre-defined message attributes that can be referenced in HornetQ core
    018     * filter expressions.
    019     *
    020     * @author <a href="mailto:tim.fox@jboss.com">Tim Fox</a>
    021     *
    022     *
    023     */
    024    public class FilterConstants
    025    {
    026       /**
    027        * Name of the HornetQ UserID header.
    028        */
    029       public static final SimpleString HORNETQ_USERID = new SimpleString("HQUserID");
    030
    031       /**
    032        * Name of the HornetQ Message expiration header.
    033        */
    034       public static final SimpleString HORNETQ_EXPIRATION = new SimpleString("HQExpiration");
    035
    036       /**
    037        * Name of the HornetQ Message durable header.
    038        */
    039       public static final SimpleString HORNETQ_DURABLE = new SimpleString("HQDurable");
    040
    041       /**
    042        * Value for the Durable header when the message is non-durable.
    043        */
    044       public static final SimpleString NON_DURABLE = new SimpleString("NON_DURABLE");
    045
    046       /**
    047        * Value for the Durable header when the message is durable.
    048        */
    049       public static final SimpleString DURABLE = new SimpleString("DURABLE");
    050
    051       /**
    052        * Name of the HornetQ Message timestamp header.
    053        */
    054       public static final SimpleString HORNETQ_TIMESTAMP = new SimpleString("HQTimestamp");
    055
    056       /**
    057        * Name of the HornetQ Message priority header.
    058        */
    059       public static final SimpleString HORNETQ_PRIORITY = new SimpleString("HQPriority");
    060
    061       /**
    062        * Name of the HornetQ Message size header.
    063        */
    064       public static final SimpleString HORNETQ_SIZE = new SimpleString("HQSize");
    065
    066       /**
    067        * All HornetQ headers are prepended by this prefix.
    068        */
    069       public static final SimpleString HORNETQ_PREFIX = new SimpleString("HQ");
    070
    071       private FilterConstants()
    072       {
    073       }
    074    }