|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.websphere.xsa.RestValue
public class RestValue
This object is used in XC10 REST Gateway. It is a data wrapper for data to be accessed via XC10 REST Gateway. With its wrapped data, it will be stored in an object grid's map entry, with a String as the key of the map entry.
Field Summary | |
---|---|
protected boolean |
compressed
Deprecated. Flag to indicate if the value is compressed or not |
protected String |
contentType
Deprecated. Content type of the contained value |
protected byte[] |
value
Deprecated. Contained value |
Fields inherited from interface com.ibm.websphere.xs.rest.RestValue |
---|
CONTENT_TYPE_APP_JSON, CONTENT_TYPE_APP_OCTET, CONTENT_TYPE_APP_XML |
Constructor Summary | |
---|---|
RestValue()
Deprecated. Constructor |
|
RestValue(byte[] value,
String contentType)
Deprecated. Constructor |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Deprecated. |
String |
getContentType()
Deprecated. Return content type of the contained value |
byte[] |
getValue()
Deprecated. Return contained value |
int |
hashCode()
Deprecated. |
boolean |
isCompressed()
Deprecated. Indicate if the contained value is compressed |
void |
readExternal(ObjectInput in)
Deprecated. |
void |
setCompressed(boolean compressed)
Deprecated. Set indicator to indicate if the contained value is compressed |
void |
setContentType(String contentType)
Deprecated. Set content type of the contained value |
void |
setValue(byte[] value)
Deprecated. Set contained value |
String |
toString()
Deprecated. |
void |
writeExternal(ObjectOutput out)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected byte[] value
protected String contentType
protected boolean compressed
Constructor Detail |
---|
public RestValue()
public RestValue(byte[] value, String contentType)
value
- A value to be wrapped by RestValue class.contentType
- Content type of the value.Method Detail |
---|
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public byte[] getValue()
getValue
in interface RestValue
public void setValue(byte[] value)
value
- An array of byte that represents the contained valuepublic String getContentType()
getContentType
in interface RestValue
public void setContentType(String contentType)
contentType
- A content typepublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public boolean isCompressed()
public void setCompressed(boolean compressed)
compressed
- A boolean value that indicate if the contained value is compressed
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |