public class StompFrame extends java.lang.Object implements Command
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
NO_DATA |
| Constructor and Description |
|---|
StompFrame() |
StompFrame(java.lang.String command) |
StompFrame(java.lang.String command,
java.util.Map<java.lang.String,java.lang.String> headers) |
StompFrame(java.lang.String command,
java.util.Map<java.lang.String,java.lang.String> headers,
byte[] data) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format() |
java.lang.String |
format(boolean forLogging) |
java.lang.String |
getAction() |
java.lang.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.
|
java.util.Map<java.lang.String,java.lang.String> |
getHeaders() |
Endpoint |
getTo()
The endpoint within the transport where this message is going to - null
means all endpoints.
|
java.lang.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(java.lang.String command) |
void |
setCommandId(int value) |
void |
setContent(byte[] data) |
void |
setFrom(Endpoint from) |
void |
setHeaders(java.util.Map<java.lang.String,java.lang.String> headers) |
void |
setResponseRequired(boolean responseRequired) |
void |
setTo(Endpoint to) |
void |
setTransportContext(java.lang.Object transportContext)
Transports may wish to associate additional data with the connection.
|
java.lang.String |
toString() |
Response |
visit(CommandVisitor visitor) |
public StompFrame(java.lang.String command)
public StompFrame(java.lang.String command,
java.util.Map<java.lang.String,java.lang.String> headers)
public StompFrame(java.lang.String command,
java.util.Map<java.lang.String,java.lang.String> headers,
byte[] data)
public StompFrame()
public java.lang.String getAction()
public void setAction(java.lang.String command)
public byte[] getContent()
public java.lang.String getBody()
public void setContent(byte[] data)
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
public void setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
public int getCommandId()
getCommandId in interface Commandpublic Endpoint getFrom()
Commandpublic Endpoint getTo()
Commandpublic boolean isBrokerInfo()
isBrokerInfo 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 setResponseRequired(boolean responseRequired)
setResponseRequired in interface Commandpublic Response visit(CommandVisitor visitor) throws java.lang.Exception
public byte getDataStructureType()
getDataStructureType in interface DataStructurepublic boolean isMarshallAware()
isMarshallAware in interface DataStructurepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String format()
public java.lang.String format(boolean forLogging)
public java.lang.Object getTransportContext()
public void setTransportContext(java.lang.Object transportContext)
transportContext - value used to set the transport contextCopyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.