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 class
Message._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description String
contentType
long
epoch
String
httpMethod
String
incomingTransport
boolean
isDoingMTOM
boolean
isDoingREST
boolean
isDoingSwA
ByteBuffer
message
String
messageId
static Map<Message._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
String
requestURI
String
soapAction
Map<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 ByteBuffer
bufferForMessage()
void
clear()
int
compareTo(Message other)
Message
deepCopy()
boolean
equals(Object that)
boolean
equals(Message that)
Message._Fields
fieldForId(int fieldId)
String
getContentType()
long
getEpoch()
Object
getFieldValue(Message._Fields field)
String
getHttpMethod()
String
getIncomingTransport()
byte[]
getMessage()
String
getMessageId()
String
getRequestURI()
String
getSoapAction()
Map<String,String>
getTransportHeaders()
int
getTransportHeadersSize()
int
hashCode()
boolean
isIsDoingMTOM()
boolean
isIsDoingREST()
boolean
isIsDoingSwA()
boolean
isSet(Message._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwiseboolean
isSetContentType()
Returns true if field contentType is set (has been assigned a value) and false otherwiseboolean
isSetEpoch()
Returns true if field epoch is set (has been assigned a value) and false otherwiseboolean
isSetHttpMethod()
Returns true if field httpMethod is set (has been assigned a value) and false otherwiseboolean
isSetIncomingTransport()
Returns true if field incomingTransport is set (has been assigned a value) and false otherwiseboolean
isSetIsDoingMTOM()
Returns true if field isDoingMTOM is set (has been assigned a value) and false otherwiseboolean
isSetIsDoingREST()
Returns true if field isDoingREST is set (has been assigned a value) and false otherwiseboolean
isSetIsDoingSwA()
Returns true if field isDoingSwA is set (has been assigned a value) and false otherwiseboolean
isSetMessage()
Returns true if field message is set (has been assigned a value) and false otherwiseboolean
isSetMessageId()
Returns true if field messageId is set (has been assigned a value) and false otherwiseboolean
isSetRequestURI()
Returns true if field requestURI is set (has been assigned a value) and false otherwiseboolean
isSetSoapAction()
Returns true if field soapAction is set (has been assigned a value) and false otherwiseboolean
isSetTransportHeaders()
Returns true if field transportHeaders is set (has been assigned a value) and false otherwisevoid
putToTransportHeaders(String key, String val)
void
read(org.apache.thrift.protocol.TProtocol iprot)
Message
setContentType(String contentType)
void
setContentTypeIsSet(boolean value)
Message
setEpoch(long epoch)
void
setEpochIsSet(boolean value)
void
setFieldValue(Message._Fields field, Object value)
Message
setHttpMethod(String httpMethod)
void
setHttpMethodIsSet(boolean value)
Message
setIncomingTransport(String incomingTransport)
void
setIncomingTransportIsSet(boolean value)
Message
setIsDoingMTOM(boolean isDoingMTOM)
void
setIsDoingMTOMIsSet(boolean value)
Message
setIsDoingREST(boolean isDoingREST)
void
setIsDoingRESTIsSet(boolean value)
Message
setIsDoingSwA(boolean isDoingSwA)
void
setIsDoingSwAIsSet(boolean value)
Message
setMessage(byte[] message)
Message
setMessage(ByteBuffer message)
Message
setMessageId(String messageId)
void
setMessageIdIsSet(boolean value)
void
setMessageIsSet(boolean value)
Message
setRequestURI(String requestURI)
void
setRequestURIIsSet(boolean value)
Message
setSoapAction(String soapAction)
void
setSoapActionIsSet(boolean value)
Message
setTransportHeaders(Map<String,String> transportHeaders)
void
setTransportHeadersIsSet(boolean value)
String
toString()
void
unsetContentType()
void
unsetEpoch()
void
unsetHttpMethod()
void
unsetIncomingTransport()
void
unsetIsDoingMTOM()
void
unsetIsDoingREST()
void
unsetIsDoingSwA()
void
unsetMessage()
void
unsetMessageId()
void
unsetRequestURI()
void
unsetSoapAction()
void
unsetTransportHeaders()
void
validate()
void
write(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:
deepCopy
in interfaceorg.apache.thrift.TBase<Message,Message._Fields>
-
clear
public void clear()
- Specified by:
clear
in 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:
setFieldValue
in interfaceorg.apache.thrift.TBase<Message,Message._Fields>
-
getFieldValue
public Object getFieldValue(Message._Fields field)
- Specified by:
getFieldValue
in 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:
isSet
in interfaceorg.apache.thrift.TBase<Message,Message._Fields>
-
equals
public boolean equals(Message that)
-
compareTo
public int compareTo(Message other)
- Specified by:
compareTo
in interfaceComparable<Message>
-
fieldForId
public Message._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.apache.thrift.TBase<Message,Message._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
- Specified by:
read
in 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:
write
in 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
-
-