org.apache.camel
Enum ExchangePattern

java.lang.Object
  extended by java.lang.Enum<ExchangePattern>
      extended by org.apache.camel.ExchangePattern
All Implemented Interfaces:
Serializable, Comparable<ExchangePattern>

public enum ExchangePattern
extends Enum<ExchangePattern>

Represents the kind of message exchange pattern

Version:

Enum Constant Summary
InOnly
           
InOptionalOut
           
InOut
           
OutIn
           
OutOnly
           
OutOptionalIn
           
RobustInOnly
           
RobustOutOnly
           
 
Field Summary
protected static Map<String,ExchangePattern> MAP
           
 
Method Summary
static ExchangePattern asEnum(String value)
           
static ExchangePattern fromWsdlUri(String wsdlUri)
          Converts the WSDL URI into a ExchangePattern instance
 String getWsdlUri()
          Returns the WSDL URI for this message exchange pattern
 boolean isFaultCapable()
          Return true if there can be a FAULT message
 boolean isInCapable()
          Return true if there can be an IN message
 boolean isOutCapable()
          Return true if there can be an OUT message
static ExchangePattern valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ExchangePattern[] 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

InOnly

public static final ExchangePattern InOnly

RobustInOnly

public static final ExchangePattern RobustInOnly

InOut

public static final ExchangePattern InOut

InOptionalOut

public static final ExchangePattern InOptionalOut

OutOnly

public static final ExchangePattern OutOnly

RobustOutOnly

public static final ExchangePattern RobustOutOnly

OutIn

public static final ExchangePattern OutIn

OutOptionalIn

public static final ExchangePattern OutOptionalIn
Field Detail

MAP

protected static final Map<String,ExchangePattern> MAP
Method Detail

values

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

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

valueOf

public static ExchangePattern 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

getWsdlUri

public String getWsdlUri()
Returns the WSDL URI for this message exchange pattern


isInCapable

public boolean isInCapable()
Return true if there can be an IN message


isOutCapable

public boolean isOutCapable()
Return true if there can be an OUT message


isFaultCapable

public boolean isFaultCapable()
Return true if there can be a FAULT message


fromWsdlUri

public static ExchangePattern fromWsdlUri(String wsdlUri)
Converts the WSDL URI into a ExchangePattern instance


asEnum

public static ExchangePattern asEnum(String value)


Apache CAMEL