|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.odata4j.consumer.ODataConsumers.Builder
public static class ODataConsumers.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 |
---|
public ODataConsumer build()
ODataConsumer.Builder
build
in interface ODataConsumer.Builder
public ODataConsumer.Builder setClientBehaviors(OClientBehavior... clientBehaviors)
ODataConsumer.Builder
setClientBehaviors
in interface ODataConsumer.Builder
clientBehaviors
- extensions used for client request modification
public ODataConsumer.Builder setFormatType(FormatType formatType)
ODataConsumer.Builder
Note: some services do not support all formats.
setFormatType
in interface ODataConsumer.Builder
formatType
- desired format
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |