org.odata4j.jersey.consumer
Class ODataJerseyConsumer.Builder

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

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

Builder for ODataJerseyConsumer objects.


Method Summary
 ODataJerseyConsumer build()
          Builds the ODataJerseyConsumer object.
 ODataJerseyConsumer.Builder setClientBehaviors(OClientBehavior... clientBehaviors)
          Sets one or more client behaviors.
 ODataJerseyConsumer.Builder setClientFactory(JerseyClientFactory clientFactory)
          Sets a specific JerseyClientFactory.
 ODataJerseyConsumer.Builder setFormatType(FormatType formatType)
          Sets a preferred FormatType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

build

public ODataJerseyConsumer build()
Builds the ODataJerseyConsumer object.

Specified by:
build in interface ODataConsumer.Builder
Returns:
a new OData consumer

setClientBehaviors

public ODataJerseyConsumer.Builder setClientBehaviors(OClientBehavior... clientBehaviors)
Sets one or more client behaviors.

Client behaviors transform http requests to interact with services that require custom extensions.

Specified by:
setClientBehaviors in interface ODataConsumer.Builder
Parameters:
clientBehaviors - the client behaviors
Returns:
this builder

setClientFactory

public ODataJerseyConsumer.Builder setClientFactory(JerseyClientFactory clientFactory)
Sets a specific JerseyClientFactory.

Parameters:
clientFactory - the jersey client factory
Returns:
this builder

setFormatType

public ODataJerseyConsumer.Builder setFormatType(FormatType formatType)
Sets a preferred FormatType. Defaults to FormatType.ATOM.

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


http://odata4j.org