001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.jms.serverless;
023:
024: import org.jboss.logging.Logger;
025: import javax.jms.Message;
026: import javax.jms.JMSException;
027: import javax.jms.Destination;
028: import java.util.Enumeration;
029: import java.io.Serializable;
030:
031: /**
032: *
033: * @author Ovidiu Feodorov <ovidiu@jboss.org>
034: * @version $Revision: 57195 $ $Date: 2006-09-26 08:08:17 -0400 (Tue, 26 Sep 2006) $
035: *
036: **/
037: class MessageImpl implements Message, Serializable {
038:
039: private static final Logger log = Logger
040: .getLogger(MessageImpl.class);
041:
042: static final long serialVersionUID = 29880310721131848L;
043:
044: private String destination;
045:
046: public Destination getJMSDestination() throws JMSException {
047: return Destinations.createDestination(destination);
048: }
049:
050: public void setJMSDestination(Destination dest) throws JMSException {
051: destination = Destinations.stringRepresentation(dest);
052: }
053:
054: public String getJMSMessageID() throws JMSException {
055: throw new NotImplementedException();
056: }
057:
058: public void setJMSMessageID(String id) throws JMSException {
059: throw new NotImplementedException();
060: }
061:
062: public long getJMSTimestamp() throws JMSException {
063: throw new NotImplementedException();
064: }
065:
066: public void setJMSTimestamp(long timestamp) throws JMSException {
067: throw new NotImplementedException();
068: }
069:
070: public byte[] getJMSCorrelationIDAsBytes() throws JMSException {
071: throw new NotImplementedException();
072: }
073:
074: public void setJMSCorrelationIDAsBytes(byte[] correlationID)
075: throws JMSException {
076: throw new NotImplementedException();
077: }
078:
079: public void setJMSCorrelationID(String correlationID)
080: throws JMSException {
081: throw new NotImplementedException();
082: }
083:
084: public String getJMSCorrelationID() throws JMSException {
085: throw new NotImplementedException();
086: }
087:
088: public Destination getJMSReplyTo() throws JMSException {
089: throw new NotImplementedException();
090: }
091:
092: public void setJMSReplyTo(Destination replyTo) throws JMSException {
093: throw new NotImplementedException();
094: }
095:
096: public int getJMSDeliveryMode() throws JMSException {
097: throw new NotImplementedException();
098: }
099:
100: public void setJMSDeliveryMode(int deliveryMode)
101: throws JMSException {
102: throw new NotImplementedException();
103: }
104:
105: public boolean getJMSRedelivered() throws JMSException {
106: throw new NotImplementedException();
107: }
108:
109: public void setJMSRedelivered(boolean redelivered)
110: throws JMSException {
111: throw new NotImplementedException();
112: }
113:
114: public String getJMSType() throws JMSException {
115: throw new NotImplementedException();
116: }
117:
118: public void setJMSType(String type) throws JMSException {
119: throw new NotImplementedException();
120: }
121:
122: public long getJMSExpiration() throws JMSException {
123: throw new NotImplementedException();
124: }
125:
126: public void setJMSExpiration(long expiration) throws JMSException {
127: throw new NotImplementedException();
128: }
129:
130: public int getJMSPriority() throws JMSException {
131: throw new NotImplementedException();
132: }
133:
134: public void setJMSPriority(int priority) throws JMSException {
135: throw new NotImplementedException();
136: }
137:
138: public void clearProperties() throws JMSException {
139: throw new NotImplementedException();
140: }
141:
142: public boolean propertyExists(String name) throws JMSException {
143: throw new NotImplementedException();
144: }
145:
146: public boolean getBooleanProperty(String name) throws JMSException {
147: throw new NotImplementedException();
148: }
149:
150: public byte getByteProperty(String name) throws JMSException {
151: throw new NotImplementedException();
152: }
153:
154: public short getShortProperty(String name) throws JMSException {
155: throw new NotImplementedException();
156: }
157:
158: public int getIntProperty(String name) throws JMSException {
159: throw new NotImplementedException();
160: }
161:
162: public long getLongProperty(String name) throws JMSException {
163: throw new NotImplementedException();
164: }
165:
166: public float getFloatProperty(String name) throws JMSException {
167: throw new NotImplementedException();
168: }
169:
170: public double getDoubleProperty(String name) throws JMSException {
171: throw new NotImplementedException();
172: }
173:
174: public String getStringProperty(String name) throws JMSException {
175: throw new NotImplementedException();
176: }
177:
178: public Object getObjectProperty(String name) throws JMSException {
179: throw new NotImplementedException();
180: }
181:
182: public Enumeration getPropertyNames() throws JMSException {
183: throw new NotImplementedException();
184: }
185:
186: public void setBooleanProperty(String name, boolean value)
187: throws JMSException {
188: throw new NotImplementedException();
189: }
190:
191: public void setByteProperty(String name, byte value)
192: throws JMSException {
193: throw new NotImplementedException();
194: }
195:
196: public void setShortProperty(String name, short value)
197: throws JMSException {
198: throw new NotImplementedException();
199: }
200:
201: public void setIntProperty(String name, int value)
202: throws JMSException {
203: throw new NotImplementedException();
204: }
205:
206: public void setLongProperty(String name, long value)
207: throws JMSException {
208: throw new NotImplementedException();
209: }
210:
211: public void setFloatProperty(String name, float value)
212: throws JMSException {
213: throw new NotImplementedException();
214: }
215:
216: public void setDoubleProperty(String name, double value)
217: throws JMSException {
218: throw new NotImplementedException();
219: }
220:
221: public void setStringProperty(String name, String value)
222: throws JMSException {
223: throw new NotImplementedException();
224: }
225:
226: public void setObjectProperty(String name, Object value)
227: throws JMSException {
228: throw new NotImplementedException();
229: }
230:
231: public void acknowledge() throws JMSException {
232: throw new NotImplementedException();
233: }
234:
235: public void clearBody() throws JMSException {
236: throw new NotImplementedException();
237: }
238: }
|