org.jboss.jms.wireformat
Class PacketSupport

java.lang.Object
  extended byorg.jboss.jms.wireformat.PacketSupport
All Implemented Interfaces:
Streamable
Direct Known Subclasses:
CallbackSupport, PolledCallbacksDelivery, RequestSupport, ResponseSupport, SerializedPacket

public abstract class PacketSupport
extends java.lang.Object
implements Streamable

A PacketSupport

Version:
$Revision: 2507 $ $Id: PacketSupport.java 2507 2007-02-28 23:46:51Z timfox $
Author:
Tim Fox

Field Summary
static int CLIENT_DELIVERY
           
static int CONNECTIONFACTORY_UPDATE
           
protected  int methodId
           
static int NULL_RESPONSE
           
protected static java.util.Map ONE_WAY_METADATA
           
static int POLLEDCALLBACKS_DELIVERY
           
static int REQ_BROWSER_HASNEXTMESSAGE
           
static int REQ_BROWSER_NEXTMESSAGE
           
static int REQ_BROWSER_NEXTMESSAGEBLOCK
           
static int REQ_BROWSER_RESET
           
static int REQ_CLOSE
           
static int REQ_CLOSING
           
static int REQ_CONNECTION_CREATESESSIONDELEGATE
           
static int REQ_CONNECTION_GETCLIENTID
           
static int REQ_CONNECTION_GETPREPAREDTRANSACTIONS
           
static int REQ_CONNECTION_SENDTRANSACTION
           
static int REQ_CONNECTION_SETCLIENTID
           
static int REQ_CONNECTION_START
           
static int REQ_CONNECTION_STOP
           
static int REQ_CONNECTIONFACTORY_CREATECONNECTIONDELEGATE
           
static int REQ_CONNECTIONFACTORY_GETCLIENTAOPSTACK
           
static int REQ_CONNECTIONFACTORY_GETIDBLOCK
           
static int REQ_CONSUMER_CHANGERATE
           
static int REQ_SESSION_ACKNOWLEDGEDELIVERIES
           
static int REQ_SESSION_ACKNOWLEDGEDELIVERY
           
static int REQ_SESSION_ADDTEMPORARYDESTINATION
           
static int REQ_SESSION_CANCELDELIVERIES
           
static int REQ_SESSION_CANCELDELIVERY
           
static int REQ_SESSION_CREATEBROWSERDELEGATE
           
static int REQ_SESSION_CREATECONSUMERDELEGATE
           
static int REQ_SESSION_CREATEQUEUE
           
static int REQ_SESSION_CREATETOPIC
           
static int REQ_SESSION_DELETETEMPORARYDESTINATION
           
static int REQ_SESSION_RECOVERDELIVERIES
           
static int REQ_SESSION_SEND
           
static int REQ_SESSION_UNSUBSCRIBE
           
static int RESP_BROWSER_HASNEXTMESSAGE
           
static int RESP_BROWSER_NEXTMESSAGE
           
static int RESP_BROWSER_NEXTMESSAGEBLOCK
           
static int RESP_CLOSING
           
static int RESP_CONNECTION_CREATESESSIONDELEGATE
           
static int RESP_CONNECTION_GETCLIENTID
           
static int RESP_CONNECTION_GETPREPAREDTRANSACTIONS
           
static int RESP_CONNECTIONFACTORY_CREATECONNECTIONDELEGATE
           
static int RESP_CONNECTIONFACTORY_GETCLIENTAOPSTACK
           
static int RESP_CONNECTIONFACTORY_GETIDBLOCK
           
static int RESP_SESSION_CREATEBROWSERDELEGATE
           
static int RESP_SESSION_CREATECONSUMERDELEGATE
           
static int RESP_SESSION_CREATEQUEUE
           
static int RESP_SESSION_CREATETOPIC
           
static int SERIALIZED
           
 
Constructor Summary
PacketSupport()
           
PacketSupport(int methodID)
           
 
Method Summary
static PacketSupport createPacket(int id)
           
 java.lang.Object getPayload()
           
abstract  void read(java.io.DataInputStream is)
           
protected  java.lang.String readNullableString(java.io.DataInputStream is)
           
 void write(java.io.DataOutputStream os)
           
protected  void writeNullableString(java.lang.String s, java.io.DataOutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONE_WAY_METADATA

protected static java.util.Map ONE_WAY_METADATA

SERIALIZED

public static final int SERIALIZED
See Also:
Constant Field Values

CLIENT_DELIVERY

public static final int CLIENT_DELIVERY
See Also:
Constant Field Values

CONNECTIONFACTORY_UPDATE

public static final int CONNECTIONFACTORY_UPDATE
See Also:
Constant Field Values

POLLEDCALLBACKS_DELIVERY

public static final int POLLEDCALLBACKS_DELIVERY
See Also:
Constant Field Values

REQ_CONNECTIONFACTORY_CREATECONNECTIONDELEGATE

public static final int REQ_CONNECTIONFACTORY_CREATECONNECTIONDELEGATE
See Also:
Constant Field Values

REQ_CONNECTIONFACTORY_GETIDBLOCK

public static final int REQ_CONNECTIONFACTORY_GETIDBLOCK
See Also:
Constant Field Values

REQ_CONNECTIONFACTORY_GETCLIENTAOPSTACK

public static final int REQ_CONNECTIONFACTORY_GETCLIENTAOPSTACK
See Also:
Constant Field Values

REQ_CONNECTION_CREATESESSIONDELEGATE

public static final int REQ_CONNECTION_CREATESESSIONDELEGATE
See Also:
Constant Field Values

REQ_CONNECTION_GETCLIENTID

public static final int REQ_CONNECTION_GETCLIENTID
See Also:
Constant Field Values

REQ_CONNECTION_SETCLIENTID

public static final int REQ_CONNECTION_SETCLIENTID
See Also:
Constant Field Values

REQ_CONNECTION_START

public static final int REQ_CONNECTION_START
See Also:
Constant Field Values

REQ_CONNECTION_STOP

public static final int REQ_CONNECTION_STOP
See Also:
Constant Field Values

REQ_CONNECTION_SENDTRANSACTION

public static final int REQ_CONNECTION_SENDTRANSACTION
See Also:
Constant Field Values

REQ_CONNECTION_GETPREPAREDTRANSACTIONS

public static final int REQ_CONNECTION_GETPREPAREDTRANSACTIONS
See Also:
Constant Field Values

REQ_SESSION_CREATECONSUMERDELEGATE

public static final int REQ_SESSION_CREATECONSUMERDELEGATE
See Also:
Constant Field Values

REQ_SESSION_CREATEBROWSERDELEGATE

public static final int REQ_SESSION_CREATEBROWSERDELEGATE
See Also:
Constant Field Values

REQ_SESSION_CREATEQUEUE

public static final int REQ_SESSION_CREATEQUEUE
See Also:
Constant Field Values

REQ_SESSION_CREATETOPIC

public static final int REQ_SESSION_CREATETOPIC
See Also:
Constant Field Values

REQ_SESSION_ACKNOWLEDGEDELIVERIES

public static final int REQ_SESSION_ACKNOWLEDGEDELIVERIES
See Also:
Constant Field Values

REQ_SESSION_ACKNOWLEDGEDELIVERY

public static final int REQ_SESSION_ACKNOWLEDGEDELIVERY
See Also:
Constant Field Values

REQ_SESSION_CANCELDELIVERIES

public static final int REQ_SESSION_CANCELDELIVERIES
See Also:
Constant Field Values

REQ_SESSION_CANCELDELIVERY

public static final int REQ_SESSION_CANCELDELIVERY
See Also:
Constant Field Values

REQ_SESSION_ADDTEMPORARYDESTINATION

public static final int REQ_SESSION_ADDTEMPORARYDESTINATION
See Also:
Constant Field Values

REQ_SESSION_DELETETEMPORARYDESTINATION

public static final int REQ_SESSION_DELETETEMPORARYDESTINATION
See Also:
Constant Field Values

REQ_SESSION_UNSUBSCRIBE

public static final int REQ_SESSION_UNSUBSCRIBE
See Also:
Constant Field Values

REQ_SESSION_SEND

public static final int REQ_SESSION_SEND
See Also:
Constant Field Values

REQ_SESSION_RECOVERDELIVERIES

public static final int REQ_SESSION_RECOVERDELIVERIES
See Also:
Constant Field Values

REQ_CONSUMER_CHANGERATE

public static final int REQ_CONSUMER_CHANGERATE
See Also:
Constant Field Values

REQ_BROWSER_NEXTMESSAGE

public static final int REQ_BROWSER_NEXTMESSAGE
See Also:
Constant Field Values

REQ_BROWSER_HASNEXTMESSAGE

public static final int REQ_BROWSER_HASNEXTMESSAGE
See Also:
Constant Field Values

REQ_BROWSER_NEXTMESSAGEBLOCK

public static final int REQ_BROWSER_NEXTMESSAGEBLOCK
See Also:
Constant Field Values

REQ_BROWSER_RESET

public static final int REQ_BROWSER_RESET
See Also:
Constant Field Values

REQ_CLOSING

public static final int REQ_CLOSING
See Also:
Constant Field Values

REQ_CLOSE

public static final int REQ_CLOSE
See Also:
Constant Field Values

NULL_RESPONSE

public static final int NULL_RESPONSE
See Also:
Constant Field Values

RESP_CONNECTIONFACTORY_CREATECONNECTIONDELEGATE

public static final int RESP_CONNECTIONFACTORY_CREATECONNECTIONDELEGATE
See Also:
Constant Field Values

RESP_CONNECTIONFACTORY_GETIDBLOCK

public static final int RESP_CONNECTIONFACTORY_GETIDBLOCK
See Also:
Constant Field Values

RESP_CONNECTIONFACTORY_GETCLIENTAOPSTACK

public static final int RESP_CONNECTIONFACTORY_GETCLIENTAOPSTACK
See Also:
Constant Field Values

RESP_CONNECTION_CREATESESSIONDELEGATE

public static final int RESP_CONNECTION_CREATESESSIONDELEGATE
See Also:
Constant Field Values

RESP_CONNECTION_GETCLIENTID

public static final int RESP_CONNECTION_GETCLIENTID
See Also:
Constant Field Values

RESP_CONNECTION_GETPREPAREDTRANSACTIONS

public static final int RESP_CONNECTION_GETPREPAREDTRANSACTIONS
See Also:
Constant Field Values

RESP_SESSION_CREATECONSUMERDELEGATE

public static final int RESP_SESSION_CREATECONSUMERDELEGATE
See Also:
Constant Field Values

RESP_SESSION_CREATEBROWSERDELEGATE

public static final int RESP_SESSION_CREATEBROWSERDELEGATE
See Also:
Constant Field Values

RESP_SESSION_CREATEQUEUE

public static final int RESP_SESSION_CREATEQUEUE
See Also:
Constant Field Values

RESP_SESSION_CREATETOPIC

public static final int RESP_SESSION_CREATETOPIC
See Also:
Constant Field Values

RESP_BROWSER_NEXTMESSAGE

public static final int RESP_BROWSER_NEXTMESSAGE
See Also:
Constant Field Values

RESP_BROWSER_HASNEXTMESSAGE

public static final int RESP_BROWSER_HASNEXTMESSAGE
See Also:
Constant Field Values

RESP_BROWSER_NEXTMESSAGEBLOCK

public static final int RESP_BROWSER_NEXTMESSAGEBLOCK
See Also:
Constant Field Values

RESP_CLOSING

public static final int RESP_CLOSING
See Also:
Constant Field Values

methodId

protected int methodId
Constructor Detail

PacketSupport

public PacketSupport()

PacketSupport

public PacketSupport(int methodID)
Method Detail

createPacket

public static PacketSupport createPacket(int id)

getPayload

public java.lang.Object getPayload()

write

public void write(java.io.DataOutputStream os)
           throws java.lang.Exception
Specified by:
write in interface Streamable
Throws:
java.lang.Exception

read

public abstract void read(java.io.DataInputStream is)
                   throws java.lang.Exception
Specified by:
read in interface Streamable
Throws:
java.lang.Exception

writeNullableString

protected void writeNullableString(java.lang.String s,
                                   java.io.DataOutputStream os)
                            throws java.lang.Exception
Throws:
java.lang.Exception

readNullableString

protected java.lang.String readNullableString(java.io.DataInputStream is)
                                       throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2006 JBoss Inc. All Rights Reserved.