org.apache.servicemix.http.endpoints
Enum HttpConsumerEndpoint.LateResponseStrategy

java.lang.Object
  extended by java.lang.Enum<HttpConsumerEndpoint.LateResponseStrategy>
      extended by org.apache.servicemix.http.endpoints.HttpConsumerEndpoint.LateResponseStrategy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HttpConsumerEndpoint.LateResponseStrategy>
Enclosing class:
HttpConsumerEndpoint

protected static enum HttpConsumerEndpoint.LateResponseStrategy
extends java.lang.Enum<HttpConsumerEndpoint.LateResponseStrategy>

Determines how the HTTP consumer endpoint should handle a late response from the NMR


Enum Constant Summary
error
          Terminate the exchange with an ERROR status and log an exception for the late response
warning
          End the exchange with a DONE status and log a warning for the late response
 
Method Summary
static HttpConsumerEndpoint.LateResponseStrategy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HttpConsumerEndpoint.LateResponseStrategy[] 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

error

public static final HttpConsumerEndpoint.LateResponseStrategy error
Terminate the exchange with an ERROR status and log an exception for the late response


warning

public static final HttpConsumerEndpoint.LateResponseStrategy warning
End the exchange with a DONE status and log a warning for the late response

Method Detail

values

public static HttpConsumerEndpoint.LateResponseStrategy[] 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 (HttpConsumerEndpoint.LateResponseStrategy c : HttpConsumerEndpoint.LateResponseStrategy.values())
    System.out.println(c);

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

valueOf

public static HttpConsumerEndpoint.LateResponseStrategy valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2005-2012 FuseSource. All Rights Reserved.