AMQMessageDelegate.java
001 /*
002  *
003  * Licensed to the Apache Software Foundation (ASF) under one
004  * or more contributor license agreements.  See the NOTICE file
005  * distributed with this work for additional information
006  * regarding copyright ownership.  The ASF licenses this file
007  * to you under the Apache License, Version 2.0 (the
008  * "License"); you may not use this file except in compliance
009  * with the License.  You may obtain a copy of the License at
010  *
011  *   http://www.apache.org/licenses/LICENSE-2.0
012  *
013  * Unless required by applicable law or agreed to in writing,
014  * software distributed under the License is distributed on an
015  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
016  * KIND, either express or implied.  See the License for the
017  * specific language governing permissions and limitations
018  * under the License.
019  *
020  */
021 
022 package org.apache.qpid.client.message;
023 
024 import org.apache.qpid.client.AMQSession;
025 import org.apache.qpid.framing.BasicContentHeaderProperties;
026 
027 import javax.jms.Destination;
028 import javax.jms.JMSException;
029 import java.util.Enumeration;
030 import java.util.UUID;
031 
032 public interface AMQMessageDelegate
033 {
034     void acknowledgeThis() throws JMSException;
035 
036     String getJMSMessageID() throws JMSException;
037 
038     void setJMSMessageID(String stringthrows JMSException;
039 
040     long getJMSTimestamp() throws JMSException;
041 
042     void setJMSTimestamp(long lthrows JMSException;
043 
044     byte[] getJMSCorrelationIDAsBytes() throws JMSException;
045 
046     void setJMSCorrelationIDAsBytes(byte[] bytesthrows JMSException;
047 
048     void setJMSCorrelationID(String stringthrows JMSException;
049 
050     String getJMSCorrelationID() throws JMSException;
051 
052     Destination getJMSReplyTo() throws JMSException;
053 
054     void setJMSReplyTo(Destination destinationthrows JMSException;
055 
056     Destination getJMSDestination() throws JMSException;
057 
058     int getJMSDeliveryMode() throws JMSException;
059 
060     void setJMSDeliveryMode(int ithrows JMSException;
061 
062     String getJMSType() throws JMSException;
063 
064     void setJMSType(String stringthrows JMSException;
065 
066     long getJMSExpiration() throws JMSException;
067 
068     void setJMSExpiration(long lthrows JMSException;
069 
070     int getJMSPriority() throws JMSException;
071 
072     void setJMSPriority(int ithrows JMSException;
073 
074     void clearProperties() throws JMSException;
075 
076     boolean propertyExists(String stringthrows JMSException;
077 
078     boolean getBooleanProperty(String stringthrows JMSException;
079 
080     byte getByteProperty(String stringthrows JMSException;
081 
082     short getShortProperty(String stringthrows JMSException;
083 
084     int getIntProperty(String stringthrows JMSException;
085 
086     long getLongProperty(String stringthrows JMSException;
087 
088     float getFloatProperty(String stringthrows JMSException;
089 
090     double getDoubleProperty(String stringthrows JMSException;
091 
092     String getStringProperty(String stringthrows JMSException;
093 
094     Object getObjectProperty(String stringthrows JMSException;
095 
096     Enumeration getPropertyNames() throws JMSException;
097 
098     void setBooleanProperty(String string, boolean bthrows JMSException;
099 
100     void setByteProperty(String string, byte bthrows JMSException;
101 
102     void setShortProperty(String string, short ithrows JMSException;
103 
104     void setIntProperty(String string, int ithrows JMSException;
105 
106     void setLongProperty(String string, long lthrows JMSException;
107 
108     void setFloatProperty(String string, float vthrows JMSException;
109 
110     void setDoubleProperty(String string, double vthrows JMSException;
111 
112     void setStringProperty(String string, String string1throws JMSException;
113 
114     void setObjectProperty(String string, Object objectthrows JMSException;
115 
116     void acknowledge() throws JMSException;
117 
118     public void setJMSDestination(Destination destination);
119 
120     public void setContentType(String contentType);
121     public String getContentType();
122 
123     public void setEncoding(String encoding);
124     public String getEncoding();
125 
126 
127     String getReplyToString();
128 
129     void removeProperty(final String propertyNamethrows JMSException;
130 
131     void setAMQSession(final AMQSession s);
132 
133     AMQSession getAMQSession();
134 
135     long getDeliveryTag();
136 
137     void setJMSMessageID(final UUID messageIdthrows JMSException;
138 }