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 string) throws JMSException;
039
040 long getJMSTimestamp() throws JMSException;
041
042 void setJMSTimestamp(long l) throws JMSException;
043
044 byte[] getJMSCorrelationIDAsBytes() throws JMSException;
045
046 void setJMSCorrelationIDAsBytes(byte[] bytes) throws JMSException;
047
048 void setJMSCorrelationID(String string) throws JMSException;
049
050 String getJMSCorrelationID() throws JMSException;
051
052 Destination getJMSReplyTo() throws JMSException;
053
054 void setJMSReplyTo(Destination destination) throws JMSException;
055
056 Destination getJMSDestination() throws JMSException;
057
058 int getJMSDeliveryMode() throws JMSException;
059
060 void setJMSDeliveryMode(int i) throws JMSException;
061
062 String getJMSType() throws JMSException;
063
064 void setJMSType(String string) throws JMSException;
065
066 long getJMSExpiration() throws JMSException;
067
068 void setJMSExpiration(long l) throws JMSException;
069
070 int getJMSPriority() throws JMSException;
071
072 void setJMSPriority(int i) throws JMSException;
073
074 void clearProperties() throws JMSException;
075
076 boolean propertyExists(String string) throws JMSException;
077
078 boolean getBooleanProperty(String string) throws JMSException;
079
080 byte getByteProperty(String string) throws JMSException;
081
082 short getShortProperty(String string) throws JMSException;
083
084 int getIntProperty(String string) throws JMSException;
085
086 long getLongProperty(String string) throws JMSException;
087
088 float getFloatProperty(String string) throws JMSException;
089
090 double getDoubleProperty(String string) throws JMSException;
091
092 String getStringProperty(String string) throws JMSException;
093
094 Object getObjectProperty(String string) throws JMSException;
095
096 Enumeration getPropertyNames() throws JMSException;
097
098 void setBooleanProperty(String string, boolean b) throws JMSException;
099
100 void setByteProperty(String string, byte b) throws JMSException;
101
102 void setShortProperty(String string, short i) throws JMSException;
103
104 void setIntProperty(String string, int i) throws JMSException;
105
106 void setLongProperty(String string, long l) throws JMSException;
107
108 void setFloatProperty(String string, float v) throws JMSException;
109
110 void setDoubleProperty(String string, double v) throws JMSException;
111
112 void setStringProperty(String string, String string1) throws JMSException;
113
114 void setObjectProperty(String string, Object object) throws 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 propertyName) throws JMSException;
130
131 void setAMQSession(final AMQSession s);
132
133 AMQSession getAMQSession();
134
135 long getDeliveryTag();
136
137 void setJMSMessageID(final UUID messageId) throws JMSException;
138 }
|