org.odata4j.cxf.consumer
Class ODataCxfConsumer.Builder

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

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


Method Summary
 ODataCxfConsumer build()
          Builds the ODataCxfConsumer object.
 ODataCxfConsumer.Builder setClientBehaviors(OClientBehavior... clientBehaviors)
          Sets one or more client behaviors.
 ODataCxfConsumer.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 ODataCxfConsumer build()
Builds the ODataCxfConsumer object.

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

setClientBehaviors

public ODataCxfConsumer.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

setFormatType

public ODataCxfConsumer.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