IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.xsa
Class RestValue

java.lang.Object
  extended by com.ibm.websphere.xsa.RestValue
All Implemented Interfaces:
RestValue, Externalizable, Serializable

Deprecated.

public class RestValue
extends Object
implements RestValue, Externalizable

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.

Since:
8.6, XC10 1.0.0.4
See Also:
Serialized Form

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

value

protected byte[] value
Deprecated. 
Contained value


contentType

protected String contentType
Deprecated. 
Content type of the contained value


compressed

protected boolean compressed
Deprecated. 
Flag to indicate if the value is compressed or not

Constructor Detail

RestValue

public RestValue()
Deprecated. 
Constructor

Since:
8.6, XC10 1.0.0.4

RestValue

public RestValue(byte[] value,
                 String contentType)
Deprecated. 
Constructor

Parameters:
value - A value to be wrapped by RestValue class.
contentType - Content type of the value.
Since:
8.6, XC10 1.0.0.4
Method Detail

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Deprecated. 
Overrides:
equals in class Object

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

getValue

public byte[] getValue()
Deprecated. 
Return contained value

Specified by:
getValue in interface RestValue
Returns:
An array of byte that represents the contained value
Since:
8.6, XC10 1.0.0.4

setValue

public void setValue(byte[] value)
Deprecated. 
Set contained value

Parameters:
value - An array of byte that represents the contained value
Since:
8.6, XC10 1.0.0.4

getContentType

public String getContentType()
Deprecated. 
Return content type of the contained value

Specified by:
getContentType in interface RestValue
Returns:
A content type
Since:
8.6, XC10 1.0.0.4

setContentType

public void setContentType(String contentType)
Deprecated. 
Set content type of the contained value

Parameters:
contentType - A content type
Since:
8.6, XC10 1.0.0.4

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Deprecated. 
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Deprecated. 
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

isCompressed

public boolean isCompressed()
Deprecated. 
Indicate if the contained value is compressed

Returns:
true if the contained value is compressed
Since:
8.6, XC10 1.0.0.4

setCompressed

public void setCompressed(boolean compressed)
Deprecated. 
Set indicator to indicate if the contained value is compressed

Parameters:
compressed - A boolean value that indicate if the contained value is compressed

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.