IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.xs.rest
Interface RestValue

All Known Implementing Classes:
RestValue

public interface RestValue

This interface is implemented by object used in WebSphere eXtreme Scale REST Gateway. Such object is used as a data wrapper for data to be accessed via WebSphere eXtreme Scale 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
See Also:
RestValueFactory

Field Summary
static String CONTENT_TYPE_APP_JSON
          "application/json" HTML content type
static String CONTENT_TYPE_APP_OCTET
          "application/octet-stream" HTML content type
static String CONTENT_TYPE_APP_XML
          "application/xml" HTML content type
 
Method Summary
 String getContentType()
          Return content type of the contained value
 byte[] getValue()
          Return contained value
 

Field Detail

CONTENT_TYPE_APP_XML

static final String CONTENT_TYPE_APP_XML
"application/xml" HTML content type

Since:
8.6
See Also:
Constant Field Values

CONTENT_TYPE_APP_JSON

static final String CONTENT_TYPE_APP_JSON
"application/json" HTML content type

Since:
8.6
See Also:
Constant Field Values

CONTENT_TYPE_APP_OCTET

static final String CONTENT_TYPE_APP_OCTET
"application/octet-stream" HTML content type

Since:
8.6
See Also:
Constant Field Values
Method Detail

getContentType

String getContentType()
Return content type of the contained value

Returns:
A content type
Since:
8.6

getValue

byte[] getValue()
Return contained value

Returns:
An array of byte that represents the contained value
Since:
8.6

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

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