|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.transport.stomp.StompFrame
public class StompFrame
Represents all the data in a STOMP frame.
| Field Summary | |
|---|---|
static byte[] |
NO_DATA
|
| Constructor Summary | |
|---|---|
StompFrame()
|
|
StompFrame(String command)
|
|
StompFrame(String command,
Map<String,String> headers)
|
|
StompFrame(String command,
Map<String,String> headers,
byte[] data)
|
|
| Method Summary | |
|---|---|
String |
format()
|
String |
format(boolean forLogging)
|
String |
getAction()
|
String |
getBody()
|
int |
getCommandId()
|
byte[] |
getContent()
|
byte |
getDataStructureType()
|
Endpoint |
getFrom()
The endpoint within the transport where this message came from which could be null if the transport only supports a single endpoint. |
Map<String,String> |
getHeaders()
|
Endpoint |
getTo()
The endpoint within the transport where this message is going to - null means all endpoints. |
Object |
getTransportContext()
Transports may wish to associate additional data with the connection. |
boolean |
isBrokerInfo()
|
boolean |
isConnectionControl()
|
boolean |
isMarshallAware()
|
boolean |
isMessage()
|
boolean |
isMessageAck()
|
boolean |
isMessageDispatch()
|
boolean |
isMessageDispatchNotification()
|
boolean |
isResponse()
|
boolean |
isResponseRequired()
|
boolean |
isShutdownInfo()
|
boolean |
isWireFormatInfo()
|
void |
setAction(String command)
|
void |
setCommandId(int value)
|
void |
setContent(byte[] data)
|
void |
setFrom(Endpoint from)
|
void |
setHeaders(Map<String,String> headers)
|
void |
setResponseRequired(boolean responseRequired)
|
void |
setTo(Endpoint to)
|
void |
setTransportContext(Object transportContext)
Transports may wish to associate additional data with the connection. |
String |
toString()
|
Response |
visit(CommandVisitor visitor)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final byte[] NO_DATA
| Constructor Detail |
|---|
public StompFrame(String command)
public StompFrame(String command,
Map<String,String> headers)
public StompFrame(String command,
Map<String,String> headers,
byte[] data)
public StompFrame()
| Method Detail |
|---|
public String getAction()
public void setAction(String command)
public byte[] getContent()
public String getBody()
public void setContent(byte[] data)
public Map<String,String> getHeaders()
public void setHeaders(Map<String,String> headers)
public int getCommandId()
getCommandId in interface Commandpublic Endpoint getFrom()
Command
getFrom in interface Commandpublic Endpoint getTo()
Command
getTo in interface Commandpublic boolean isBrokerInfo()
isBrokerInfo in interface Commandpublic boolean isMessage()
isMessage in interface Commandpublic boolean isMessageAck()
isMessageAck in interface Commandpublic boolean isMessageDispatch()
isMessageDispatch in interface Commandpublic boolean isMessageDispatchNotification()
isMessageDispatchNotification in interface Commandpublic boolean isResponse()
isResponse in interface Commandpublic boolean isResponseRequired()
isResponseRequired in interface Commandpublic boolean isShutdownInfo()
isShutdownInfo in interface Commandpublic boolean isConnectionControl()
isConnectionControl in interface Commandpublic boolean isWireFormatInfo()
isWireFormatInfo in interface Commandpublic void setCommandId(int value)
setCommandId in interface Commandpublic void setFrom(Endpoint from)
setFrom in interface Commandpublic void setResponseRequired(boolean responseRequired)
setResponseRequired in interface Commandpublic void setTo(Endpoint to)
setTo in interface Command
public Response visit(CommandVisitor visitor)
throws Exception
visit in interface CommandExceptionpublic byte getDataStructureType()
getDataStructureType in interface DataStructurepublic boolean isMarshallAware()
isMarshallAware in interface DataStructurepublic String toString()
toString in class Objectpublic String format()
public String format(boolean forLogging)
public Object getTransportContext()
public void setTransportContext(Object transportContext)
transportContext - value used to set the transport context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||