org.odata4j.consumer
Enum ODataConsumer.Dump

java.lang.Object
  extended by java.lang.Enum<ODataConsumer.Dump>
      extended by org.odata4j.consumer.ODataConsumer.Dump
All Implemented Interfaces:
Serializable, Comparable<ODataConsumer.Dump>
Enclosing interface:
ODataConsumer

public static enum ODataConsumer.Dump
extends Enum<ODataConsumer.Dump>

Sends http request and/or response information to standard out. Useful for debugging.


Enum Constant Summary
INSTANCE
          enum-as-singleton pattern
 
Method Summary
 void all(boolean dump)
          Sets whether or not to dump all http request and response information.
 boolean requestBody()
          Are http request bodies currently dumped?
 void requestBody(boolean dump)
          Sets whether or not to dump http request bodies.
 boolean requestHeaders()
          Are http request headers currently dumped?
 void requestHeaders(boolean dump)
          Sets whether or not to dump http request headers.
 boolean responseBody()
          Are http response bodies currently dumped?
 void responseBody(boolean dump)
          Sets whether or not to dump http response bodies.
 boolean responseHeaders()
          Are http response headers currently dumped?
 void responseHeaders(boolean dump)
          Sets whether or not to dump http response headers.
static ODataConsumer.Dump valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ODataConsumer.Dump[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INSTANCE

public static final ODataConsumer.Dump INSTANCE
enum-as-singleton pattern

Method Detail

all

public void all(boolean dump)
Sets whether or not to dump all http request and response information.


requestBody

public boolean requestBody()
Are http request bodies currently dumped?


requestBody

public void requestBody(boolean dump)
Sets whether or not to dump http request bodies.


requestHeaders

public boolean requestHeaders()
Are http request headers currently dumped?


requestHeaders

public void requestHeaders(boolean dump)
Sets whether or not to dump http request headers.


responseBody

public boolean responseBody()
Are http response bodies currently dumped?


responseBody

public void responseBody(boolean dump)
Sets whether or not to dump http response bodies.


responseHeaders

public boolean responseHeaders()
Are http response headers currently dumped?


responseHeaders

public void responseHeaders(boolean dump)
Sets whether or not to dump http response headers.


valueOf

public static ODataConsumer.Dump valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

values

public static ODataConsumer.Dump[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ODataConsumer.Dump c : ODataConsumer.Dump.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared


http://odata4j.org