IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.xs.rest
Class RestValueFactory

java.lang.Object
  extended by com.ibm.websphere.xs.rest.RestValueFactory

public final class RestValueFactory
extends Object

This RestValueFactory class is used to create object that implements RestValue interface.

Since:
8.6
See Also:
RestValue

Method Summary
 RestValue createRestValue(String contentType, byte[] valueBytes)
          Create an object instance that implements the RestValue interface.
static RestValueFactory instance()
          Return the singleton instance of RestValueFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createRestValue

public RestValue createRestValue(String contentType,
                                 byte[] valueBytes)
Create an object instance that implements the RestValue interface. Returns NULL if the given content type is not supported.

Parameters:
contentType - an content type string used in HTML headers. See RestValue interface for the list of supported content type.
valueBytes - array of byte for the data to be wrapped by the RestValue object
Returns:
an object instance that implements the RestValue interface
Since:
8.6
See Also:
RestValue

instance

public static RestValueFactory instance()
Return the singleton instance of RestValueFactory

Returns:
the instance of RestValueFactory
Since:
8.6

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

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