Class StompFrame
java.lang.Object
org.apache.activemq.transport.stomp.StompFrame
- All Implemented Interfaces:
org.apache.activemq.command.Command,org.apache.activemq.command.DataStructure
- Direct Known Subclasses:
StompFrameError
Represents all the data in a STOMP frame.
- Author:
- chirino
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStompFrame(String command) StompFrame(String command, Map<String, String> headers) StompFrame(String command, Map<String, String> headers, byte[] data) -
Method Summary
Modifier and TypeMethodDescriptionformat()format(boolean forLogging) getBody()intbyte[]byteorg.apache.activemq.command.EndpointgetFrom()org.apache.activemq.command.EndpointgetTo()Transports may wish to associate additional data with the connection.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidvoidsetCommandId(int value) voidsetContent(byte[] data) voidsetFrom(org.apache.activemq.command.Endpoint from) voidsetHeaders(Map<String, String> headers) voidsetResponseRequired(boolean responseRequired) voidsetTo(org.apache.activemq.command.Endpoint to) voidsetTransportContext(Object transportContext) Transports may wish to associate additional data with the connection.toString()org.apache.activemq.command.Responsevisit(org.apache.activemq.state.CommandVisitor visitor)
-
Field Details
-
NO_DATA
public static final byte[] NO_DATA
-
-
Constructor Details
-
StompFrame
-
StompFrame
-
StompFrame
-
StompFrame
public StompFrame()
-
-
Method Details
-
getAction
-
setAction
-
getContent
public byte[] getContent() -
getBody
-
setContent
public void setContent(byte[] data) -
getHeaders
-
setHeaders
-
getCommandId
public int getCommandId()- Specified by:
getCommandIdin interfaceorg.apache.activemq.command.Command
-
getFrom
public org.apache.activemq.command.Endpoint getFrom()- Specified by:
getFromin interfaceorg.apache.activemq.command.Command
-
getTo
public org.apache.activemq.command.Endpoint getTo()- Specified by:
getToin interfaceorg.apache.activemq.command.Command
-
isBrokerInfo
public boolean isBrokerInfo()- Specified by:
isBrokerInfoin interfaceorg.apache.activemq.command.Command
-
isMessage
public boolean isMessage()- Specified by:
isMessagein interfaceorg.apache.activemq.command.Command
-
isMessageAck
public boolean isMessageAck()- Specified by:
isMessageAckin interfaceorg.apache.activemq.command.Command
-
isMessageDispatch
public boolean isMessageDispatch()- Specified by:
isMessageDispatchin interfaceorg.apache.activemq.command.Command
-
isMessageDispatchNotification
public boolean isMessageDispatchNotification()- Specified by:
isMessageDispatchNotificationin interfaceorg.apache.activemq.command.Command
-
isResponse
public boolean isResponse()- Specified by:
isResponsein interfaceorg.apache.activemq.command.Command
-
isResponseRequired
public boolean isResponseRequired()- Specified by:
isResponseRequiredin interfaceorg.apache.activemq.command.Command
-
isShutdownInfo
public boolean isShutdownInfo()- Specified by:
isShutdownInfoin interfaceorg.apache.activemq.command.Command
-
isConnectionControl
public boolean isConnectionControl()- Specified by:
isConnectionControlin interfaceorg.apache.activemq.command.Command
-
isConsumerControl
public boolean isConsumerControl()- Specified by:
isConsumerControlin interfaceorg.apache.activemq.command.Command
-
isWireFormatInfo
public boolean isWireFormatInfo()- Specified by:
isWireFormatInfoin interfaceorg.apache.activemq.command.Command
-
setCommandId
public void setCommandId(int value) - Specified by:
setCommandIdin interfaceorg.apache.activemq.command.Command
-
setFrom
public void setFrom(org.apache.activemq.command.Endpoint from) - Specified by:
setFromin interfaceorg.apache.activemq.command.Command
-
setResponseRequired
public void setResponseRequired(boolean responseRequired) - Specified by:
setResponseRequiredin interfaceorg.apache.activemq.command.Command
-
setTo
public void setTo(org.apache.activemq.command.Endpoint to) - Specified by:
setToin interfaceorg.apache.activemq.command.Command
-
visit
public org.apache.activemq.command.Response visit(org.apache.activemq.state.CommandVisitor visitor) throws Exception - Specified by:
visitin interfaceorg.apache.activemq.command.Command- Throws:
Exception
-
getDataStructureType
public byte getDataStructureType()- Specified by:
getDataStructureTypein interfaceorg.apache.activemq.command.DataStructure
-
isMarshallAware
public boolean isMarshallAware()- Specified by:
isMarshallAwarein interfaceorg.apache.activemq.command.DataStructure
-
toString
-
format
-
format
-
getTransportContext
Transports may wish to associate additional data with the connection. For example, an SSL transport may use this field to attach the client certificates used when the connection was established.- Returns:
- the transport context.
-
setTransportContext
Transports may wish to associate additional data with the connection. For example, an SSL transport may use this field to attach the client certificates used when the connection was established.- Parameters:
transportContext- value used to set the transport context
-