Class Message
- java.lang.Object
-
- org.wso2.carbon.cloud.gateway.common.thrift.gen.Message
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Message>,org.apache.thrift.TBase<Message,Message._Fields>
@Generated("Autogenerated by Thrift Compiler (0.9.2)") public class Message extends Object implements org.apache.thrift.TBase<Message,Message._Fields>, Serializable, Cloneable, Comparable<Message>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessage._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description StringcontentTypelongepochStringhttpMethodStringincomingTransportbooleanisDoingMTOMbooleanisDoingRESTbooleanisDoingSwAByteBuffermessageStringmessageIdstatic Map<Message._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapStringrequestURIStringsoapActionMap<String,String>transportHeaders
-
Constructor Summary
Constructors Constructor Description Message()Message(String messageId, String contentType, ByteBuffer message, String soapAction, long epoch, Map<String,String> transportHeaders, String requestURI, boolean isDoingREST, String httpMethod, boolean isDoingMTOM, boolean isDoingSwA, String incomingTransport)Message(Message other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBufferbufferForMessage()voidclear()intcompareTo(Message other)MessagedeepCopy()booleanequals(Object that)booleanequals(Message that)Message._FieldsfieldForId(int fieldId)StringgetContentType()longgetEpoch()ObjectgetFieldValue(Message._Fields field)StringgetHttpMethod()StringgetIncomingTransport()byte[]getMessage()StringgetMessageId()StringgetRequestURI()StringgetSoapAction()Map<String,String>getTransportHeaders()intgetTransportHeadersSize()inthashCode()booleanisIsDoingMTOM()booleanisIsDoingREST()booleanisIsDoingSwA()booleanisSet(Message._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetContentType()Returns true if field contentType is set (has been assigned a value) and false otherwisebooleanisSetEpoch()Returns true if field epoch is set (has been assigned a value) and false otherwisebooleanisSetHttpMethod()Returns true if field httpMethod is set (has been assigned a value) and false otherwisebooleanisSetIncomingTransport()Returns true if field incomingTransport is set (has been assigned a value) and false otherwisebooleanisSetIsDoingMTOM()Returns true if field isDoingMTOM is set (has been assigned a value) and false otherwisebooleanisSetIsDoingREST()Returns true if field isDoingREST is set (has been assigned a value) and false otherwisebooleanisSetIsDoingSwA()Returns true if field isDoingSwA is set (has been assigned a value) and false otherwisebooleanisSetMessage()Returns true if field message is set (has been assigned a value) and false otherwisebooleanisSetMessageId()Returns true if field messageId is set (has been assigned a value) and false otherwisebooleanisSetRequestURI()Returns true if field requestURI is set (has been assigned a value) and false otherwisebooleanisSetSoapAction()Returns true if field soapAction is set (has been assigned a value) and false otherwisebooleanisSetTransportHeaders()Returns true if field transportHeaders is set (has been assigned a value) and false otherwisevoidputToTransportHeaders(String key, String val)voidread(org.apache.thrift.protocol.TProtocol iprot)MessagesetContentType(String contentType)voidsetContentTypeIsSet(boolean value)MessagesetEpoch(long epoch)voidsetEpochIsSet(boolean value)voidsetFieldValue(Message._Fields field, Object value)MessagesetHttpMethod(String httpMethod)voidsetHttpMethodIsSet(boolean value)MessagesetIncomingTransport(String incomingTransport)voidsetIncomingTransportIsSet(boolean value)MessagesetIsDoingMTOM(boolean isDoingMTOM)voidsetIsDoingMTOMIsSet(boolean value)MessagesetIsDoingREST(boolean isDoingREST)voidsetIsDoingRESTIsSet(boolean value)MessagesetIsDoingSwA(boolean isDoingSwA)voidsetIsDoingSwAIsSet(boolean value)MessagesetMessage(byte[] message)MessagesetMessage(ByteBuffer message)MessagesetMessageId(String messageId)voidsetMessageIdIsSet(boolean value)voidsetMessageIsSet(boolean value)MessagesetRequestURI(String requestURI)voidsetRequestURIIsSet(boolean value)MessagesetSoapAction(String soapAction)voidsetSoapActionIsSet(boolean value)MessagesetTransportHeaders(Map<String,String> transportHeaders)voidsetTransportHeadersIsSet(boolean value)StringtoString()voidunsetContentType()voidunsetEpoch()voidunsetHttpMethod()voidunsetIncomingTransport()voidunsetIsDoingMTOM()voidunsetIsDoingREST()voidunsetIsDoingSwA()voidunsetMessage()voidunsetMessageId()voidunsetRequestURI()voidunsetSoapAction()voidunsetTransportHeaders()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
messageId
public String messageId
-
contentType
public String contentType
-
message
public ByteBuffer message
-
soapAction
public String soapAction
-
epoch
public long epoch
-
requestURI
public String requestURI
-
isDoingREST
public boolean isDoingREST
-
httpMethod
public String httpMethod
-
isDoingMTOM
public boolean isDoingMTOM
-
isDoingSwA
public boolean isDoingSwA
-
incomingTransport
public String incomingTransport
-
metaDataMap
public static final Map<Message._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
Message
public Message()
-
Message
public Message(String messageId, String contentType, ByteBuffer message, String soapAction, long epoch, Map<String,String> transportHeaders, String requestURI, boolean isDoingREST, String httpMethod, boolean isDoingMTOM, boolean isDoingSwA, String incomingTransport)
-
Message
public Message(Message other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public Message deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<Message,Message._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<Message,Message._Fields>
-
getMessageId
public String getMessageId()
-
unsetMessageId
public void unsetMessageId()
-
isSetMessageId
public boolean isSetMessageId()
Returns true if field messageId is set (has been assigned a value) and false otherwise
-
setMessageIdIsSet
public void setMessageIdIsSet(boolean value)
-
getContentType
public String getContentType()
-
unsetContentType
public void unsetContentType()
-
isSetContentType
public boolean isSetContentType()
Returns true if field contentType is set (has been assigned a value) and false otherwise
-
setContentTypeIsSet
public void setContentTypeIsSet(boolean value)
-
getMessage
public byte[] getMessage()
-
bufferForMessage
public ByteBuffer bufferForMessage()
-
setMessage
public Message setMessage(byte[] message)
-
setMessage
public Message setMessage(ByteBuffer message)
-
unsetMessage
public void unsetMessage()
-
isSetMessage
public boolean isSetMessage()
Returns true if field message is set (has been assigned a value) and false otherwise
-
setMessageIsSet
public void setMessageIsSet(boolean value)
-
getSoapAction
public String getSoapAction()
-
unsetSoapAction
public void unsetSoapAction()
-
isSetSoapAction
public boolean isSetSoapAction()
Returns true if field soapAction is set (has been assigned a value) and false otherwise
-
setSoapActionIsSet
public void setSoapActionIsSet(boolean value)
-
getEpoch
public long getEpoch()
-
setEpoch
public Message setEpoch(long epoch)
-
unsetEpoch
public void unsetEpoch()
-
isSetEpoch
public boolean isSetEpoch()
Returns true if field epoch is set (has been assigned a value) and false otherwise
-
setEpochIsSet
public void setEpochIsSet(boolean value)
-
getTransportHeadersSize
public int getTransportHeadersSize()
-
unsetTransportHeaders
public void unsetTransportHeaders()
-
isSetTransportHeaders
public boolean isSetTransportHeaders()
Returns true if field transportHeaders is set (has been assigned a value) and false otherwise
-
setTransportHeadersIsSet
public void setTransportHeadersIsSet(boolean value)
-
getRequestURI
public String getRequestURI()
-
unsetRequestURI
public void unsetRequestURI()
-
isSetRequestURI
public boolean isSetRequestURI()
Returns true if field requestURI is set (has been assigned a value) and false otherwise
-
setRequestURIIsSet
public void setRequestURIIsSet(boolean value)
-
isIsDoingREST
public boolean isIsDoingREST()
-
setIsDoingREST
public Message setIsDoingREST(boolean isDoingREST)
-
unsetIsDoingREST
public void unsetIsDoingREST()
-
isSetIsDoingREST
public boolean isSetIsDoingREST()
Returns true if field isDoingREST is set (has been assigned a value) and false otherwise
-
setIsDoingRESTIsSet
public void setIsDoingRESTIsSet(boolean value)
-
getHttpMethod
public String getHttpMethod()
-
unsetHttpMethod
public void unsetHttpMethod()
-
isSetHttpMethod
public boolean isSetHttpMethod()
Returns true if field httpMethod is set (has been assigned a value) and false otherwise
-
setHttpMethodIsSet
public void setHttpMethodIsSet(boolean value)
-
isIsDoingMTOM
public boolean isIsDoingMTOM()
-
setIsDoingMTOM
public Message setIsDoingMTOM(boolean isDoingMTOM)
-
unsetIsDoingMTOM
public void unsetIsDoingMTOM()
-
isSetIsDoingMTOM
public boolean isSetIsDoingMTOM()
Returns true if field isDoingMTOM is set (has been assigned a value) and false otherwise
-
setIsDoingMTOMIsSet
public void setIsDoingMTOMIsSet(boolean value)
-
isIsDoingSwA
public boolean isIsDoingSwA()
-
setIsDoingSwA
public Message setIsDoingSwA(boolean isDoingSwA)
-
unsetIsDoingSwA
public void unsetIsDoingSwA()
-
isSetIsDoingSwA
public boolean isSetIsDoingSwA()
Returns true if field isDoingSwA is set (has been assigned a value) and false otherwise
-
setIsDoingSwAIsSet
public void setIsDoingSwAIsSet(boolean value)
-
getIncomingTransport
public String getIncomingTransport()
-
unsetIncomingTransport
public void unsetIncomingTransport()
-
isSetIncomingTransport
public boolean isSetIncomingTransport()
Returns true if field incomingTransport is set (has been assigned a value) and false otherwise
-
setIncomingTransportIsSet
public void setIncomingTransportIsSet(boolean value)
-
setFieldValue
public void setFieldValue(Message._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<Message,Message._Fields>
-
getFieldValue
public Object getFieldValue(Message._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<Message,Message._Fields>
-
isSet
public boolean isSet(Message._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<Message,Message._Fields>
-
equals
public boolean equals(Message that)
-
compareTo
public int compareTo(Message other)
- Specified by:
compareToin interfaceComparable<Message>
-
fieldForId
public Message._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<Message,Message._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TBase<Message,Message._Fields>- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TBase<Message,Message._Fields>- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-