org.odata4j.consumer
Interface ODataConsumer.Builder

All Known Implementing Classes:
ODataConsumers.Builder, ODataCxfConsumer.Builder, ODataJerseyConsumer.Builder
Enclosing interface:
ODataConsumer

public static interface ODataConsumer.Builder

Mutable builder for ODataConsumer instances.


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.
 

Method Detail

build

ODataConsumer build()
Returns the immutable consumer instance for interacting with an OData service.

Returns:
the newly-created consumer instance

setClientBehaviors

ODataConsumer.Builder setClientBehaviors(OClientBehavior... clientBehaviors)
Sets the client behavior extensions associated with the consumer.

Parameters:
clientBehaviors - extensions used for client request modification
Returns:
the consumer-builder

setFormatType

ODataConsumer.Builder setFormatType(FormatType formatType)
Sets the desired format type for all requests. e.g. ATOM or JSON.

Note: some services do not support all formats.

Parameters:
formatType - desired format
Returns:
the consumer-builder


http://odata4j.org