|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.endpoints.EndpointDefinition
public class EndpointDefinition
An Endpoint definition contains the information about an endpoint. It is used by leaf level endpoints to store this information (e.g. AddressEndpoint and WSDLEndpoint).
Constructor Summary | |
---|---|
EndpointDefinition()
|
Method Summary | |
---|---|
void |
addRetryDisabledErrorCode(int code)
|
void |
addSuspendErrorCode(int code)
|
void |
addTimeoutErrorCode(int code)
|
void |
configure(AspectConfiguration aspectConfiguration)
Configure aspects according to the given configuration |
void |
disableStatistics()
|
void |
enableStatistics()
|
String |
getAddress()
This should return the absolute EPR address referenced by the named endpoint. |
String |
getAddress(MessageContext messageContext)
This should return the absolute EPR address referenced by the named endpoint. |
String |
getAddressingVersion()
Get the addressing namespace version |
AspectConfiguration |
getAspectConfiguration()
Get the aspects configuration |
String |
getCharSetEncoding()
Get the charset encoding for messages sent to the endpoint. |
String |
getFormat()
|
String |
getInboundWsSecPolicyKey()
Return the Rampart Security configuration policys' 'key' to be used for inbound messages (See Rampart) |
long |
getInitialSuspendDuration()
Get the suspend on fail duration. |
String |
getOutboundWsSecPolicyKey()
Return the Rampart Security configuration policys' 'key' to be used for outbound messages (See Rampart) |
int |
getRetriesOnTimeoutBeforeSuspend()
|
List<Integer> |
getRetryDisabledErrorCodes()
|
int |
getRetryDurationOnTimeout()
|
List<Integer> |
getSuspendErrorCodes()
|
long |
getSuspendMaximumDuration()
|
float |
getSuspendProgressionFactor()
|
int |
getTimeoutAction()
|
long |
getTimeoutDuration()
|
List<Integer> |
getTimeoutErrorCodes()
|
int |
getTraceState()
|
String |
getWsRMPolicyKey()
Get the WS-RM configuration policys' 'key' to be used |
String |
getWsSecPolicyKey()
Return the Rampart Security configuration policys' 'key' to be used (See Rampart) |
boolean |
isAddressingOn()
Is WS-A turned on on this endpoint? |
boolean |
isForceGET()
|
boolean |
isForcePOX()
|
boolean |
isForceREST()
|
boolean |
isForceSOAP11()
|
boolean |
isForceSOAP12()
|
boolean |
isReliableMessagingOn()
Is RM turned on on this endpoint? |
boolean |
isReplicationDisabled()
|
boolean |
isSecurityOn()
Is WS-Security turned on on this endpoint? |
boolean |
isStatisticsEnable()
|
boolean |
isUseMTOM()
|
boolean |
isUseSeparateListener()
|
boolean |
isUseSwa()
|
void |
setAddress(String address)
Set an absolute URL as the address for this named endpoint |
void |
setAddressingOn(boolean addressingOn)
Request that WS-A be turned on/off on this endpoint |
void |
setAddressingVersion(String addressingVersion)
Set the addressing namespace version |
void |
setCharSetEncoding(String charSetEncoding)
Set the charset encoding for messages sent to the endpoint. |
void |
setForceGET(boolean forceGET)
|
void |
setForcePOX(boolean forcePOX)
|
void |
setForceREST(boolean forceREST)
|
void |
setForceSOAP11(boolean forceSOAP11)
|
void |
setForceSOAP12(boolean forceSOAP12)
|
void |
setFormat(String format)
|
void |
setInboundWsSecPolicyKey(String inboundWsSecPolicyKey)
Set the Rampart Security configuration policys' 'key' to be used for inbound messages (See Rampart) |
void |
setInitialSuspendDuration(long initialSuspendDuration)
Set the suspend on fail duration. |
void |
setLeafEndpoint(Endpoint leafEndpoint)
|
void |
setOutboundWsSecPolicyKey(String outboundWsSecPolicyKey)
Set the Rampart Security configuration policys' 'key' to be used (See Rampart) |
void |
setReliableMessagingOn(boolean reliableMessagingOn)
Request that RM be turned on/off on this endpoint |
void |
setReplicationDisabled(boolean replicationDisabled)
|
void |
setRetriesOnTimeoutBeforeSuspend(int retriesOnTimeoutBeforeSuspend)
|
void |
setRetryDurationOnTimeout(int retryDurationOnTimeout)
|
void |
setSecurityOn(boolean securityOn)
Request that WS-Sec be turned on/off on this endpoint |
void |
setSuspendMaximumDuration(long suspendMaximumDuration)
|
void |
setSuspendProgressionFactor(float suspendProgressionFactor)
|
void |
setTimeoutAction(int timeoutAction)
|
void |
setTimeoutDuration(long timeoutDuration)
Set the timeout duration. |
void |
setTraceState(int traceState)
|
void |
setUseMTOM(boolean useMTOM)
|
void |
setUseSeparateListener(boolean b)
|
void |
setUseSwa(boolean useSwa)
|
void |
setWsRMPolicyKey(String wsRMPolicyKey)
Set the WS-RM configuration policys' 'key' to be used |
void |
setWsSecPolicyKey(String wsSecPolicyKey)
Set the Rampart Security configuration policys' 'key' to be used (See Rampart) |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EndpointDefinition()
Method Detail |
---|
public String getAddress()
public String getAddress(MessageContext messageContext)
messageContext
- the current message context against the address is computed
public void setAddress(String address)
address
- the absolute address to be usedpublic boolean isReliableMessagingOn()
public void setReliableMessagingOn(boolean reliableMessagingOn)
reliableMessagingOn
- a boolean flag indicating RM is on or notpublic boolean isAddressingOn()
public void setAddressingOn(boolean addressingOn)
addressingOn
- a boolean flag indicating addressing is on or notpublic String getAddressingVersion()
public void setAddressingVersion(String addressingVersion)
addressingVersion
- Version of the addressing spec to usepublic boolean isSecurityOn()
public void setSecurityOn(boolean securityOn)
securityOn
- a boolean flag indicating security is on or notpublic String getWsSecPolicyKey()
public void setWsSecPolicyKey(String wsSecPolicyKey)
wsSecPolicyKey
- the Rampart Security configuration policys' 'key' to be usedpublic String getInboundWsSecPolicyKey()
public void setInboundWsSecPolicyKey(String inboundWsSecPolicyKey)
inboundWsSecPolicyKey
- the Rampart Security configuration policys' 'key' to be usedpublic String getOutboundWsSecPolicyKey()
public void setOutboundWsSecPolicyKey(String outboundWsSecPolicyKey)
outboundWsSecPolicyKey
- the Rampart Security configuration policys' 'key' to be usedpublic String getWsRMPolicyKey()
public void setWsRMPolicyKey(String wsRMPolicyKey)
wsRMPolicyKey
- the WS-RM configuration policys' 'key' to be usedpublic void setUseSeparateListener(boolean b)
public boolean isUseSeparateListener()
public void setForcePOX(boolean forcePOX)
public boolean isForcePOX()
public boolean isForceGET()
public void setForceGET(boolean forceGET)
public void setForceSOAP11(boolean forceSOAP11)
public boolean isForceSOAP11()
public void setForceSOAP12(boolean forceSOAP12)
public boolean isForceSOAP12()
public boolean isForceREST()
public void setForceREST(boolean forceREST)
public boolean isUseMTOM()
public void setUseMTOM(boolean useMTOM)
public boolean isUseSwa()
public void setUseSwa(boolean useSwa)
public long getTimeoutDuration()
public void setTimeoutDuration(long timeoutDuration)
timeoutDuration
- a duration in millisecondspublic int getTimeoutAction()
public void setTimeoutAction(int timeoutAction)
public String getFormat()
public void setFormat(String format)
public String getCharSetEncoding()
public void setCharSetEncoding(String charSetEncoding)
charSetEncoding
- the charset encoding or null
public long getInitialSuspendDuration()
public void setInitialSuspendDuration(long initialSuspendDuration)
initialSuspendDuration
- a duration in millisecondspublic int getTraceState()
public void setTraceState(int traceState)
public float getSuspendProgressionFactor()
public void setSuspendProgressionFactor(float suspendProgressionFactor)
public long getSuspendMaximumDuration()
public void setSuspendMaximumDuration(long suspendMaximumDuration)
public int getRetriesOnTimeoutBeforeSuspend()
public void setRetriesOnTimeoutBeforeSuspend(int retriesOnTimeoutBeforeSuspend)
public int getRetryDurationOnTimeout()
public void setRetryDurationOnTimeout(int retryDurationOnTimeout)
public List<Integer> getSuspendErrorCodes()
public List<Integer> getTimeoutErrorCodes()
public List<Integer> getRetryDisabledErrorCodes()
public boolean isReplicationDisabled()
public void setReplicationDisabled(boolean replicationDisabled)
public void addSuspendErrorCode(int code)
public void addTimeoutErrorCode(int code)
public void addRetryDisabledErrorCode(int code)
public String toString()
toString
in class Object
public void setLeafEndpoint(Endpoint leafEndpoint)
public boolean isStatisticsEnable()
public void disableStatistics()
public void enableStatistics()
public void configure(AspectConfiguration aspectConfiguration)
AspectConfigurable
configure
in interface AspectConfigurable
aspectConfiguration
- AspectConfiguration instancepublic AspectConfiguration getAspectConfiguration()
AspectConfigurable
getAspectConfiguration
in interface AspectConfigurable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |