org.odata4j.consumer
Class ODataConsumers.Builder

java.lang.Object
  extended by org.odata4j.consumer.ODataConsumers.Builder
All Implemented Interfaces:
ODataConsumer.Builder
Enclosing class:
ODataConsumers

public static class ODataConsumers.Builder
extends Object
implements ODataConsumer.Builder

Builder for ODataConsumer objects.


Method Summary
 ODataConsumer build()
          Returns the immutable consumer instance for interacting with an OData service.
 ODataConsumer.Builder setClientBehaviors(OClientBehavior... clientBehaviors)
          Sets the client behavior extensions associated with the consumer.
 ODataConsumer.Builder setFormatType(FormatType formatType)
          Sets the desired format type for all requests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

build

public ODataConsumer build()
Description copied from interface: ODataConsumer.Builder
Returns the immutable consumer instance for interacting with an OData service.

Specified by:
build in interface ODataConsumer.Builder
Returns:
the newly-created consumer instance

setClientBehaviors

public ODataConsumer.Builder setClientBehaviors(OClientBehavior... clientBehaviors)
Description copied from interface: ODataConsumer.Builder
Sets the client behavior extensions associated with the consumer.

Specified by:
setClientBehaviors in interface ODataConsumer.Builder
Parameters:
clientBehaviors - extensions used for client request modification
Returns:
the consumer-builder

setFormatType

public ODataConsumer.Builder setFormatType(FormatType formatType)
Description copied from interface: ODataConsumer.Builder
Sets the desired format type for all requests. e.g. ATOM or JSON.

Note: some services do not support all formats.

Specified by:
setFormatType in interface ODataConsumer.Builder
Parameters:
formatType - desired format
Returns:
the consumer-builder


http://odata4j.org