|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.FaultHandler
org.apache.synapse.endpoints.AddressEndpoint
public class AddressEndpoint
This class represents an actual endpoint to send the message. It is resposible for sending the message, performing reries if a failure occured and informing the parent endpoint if a failure couldn't be recovered.
| Constructor Summary | |
|---|---|
AddressEndpoint()
|
|
| Method Summary | |
|---|---|
EndpointDefinition |
getEndpoint()
|
java.lang.String |
getName()
Returns the name of the endpoint. |
long |
getSuspendOnFailDuration()
|
boolean |
isActive(MessageContext synMessageContext)
Checks if the endpoint is active (failed or not). |
void |
onChildEndpointFail(Endpoint endpoint,
MessageContext synMessageContext)
Endpoints that contain other endpoints should implement this method. |
void |
onFault(MessageContext synCtx)
This will be executed to handle any Exceptions occured within the Synapse environment. |
void |
send(MessageContext synCtx)
Sends the message through this endpoint. |
void |
setActive(boolean active,
MessageContext synMessageContext)
Sets if endpoint active or not. |
void |
setEndpoint(EndpointDefinition endpoint)
|
void |
setName(java.lang.String name)
Sets the name of the endpoint. |
void |
setParentEndpoint(Endpoint parentEndpoint)
Sets the parent endpoint for the current endpoint. |
void |
setSuspendOnFailDuration(long suspendOnFailDuration)
|
| Methods inherited from class org.apache.synapse.FaultHandler |
|---|
handleFault, handleFault |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AddressEndpoint()
| Method Detail |
|---|
public EndpointDefinition getEndpoint()
public void setEndpoint(EndpointDefinition endpoint)
public java.lang.String getName()
Endpoint
getName in interface Endpointpublic void setName(java.lang.String name)
Endpoint
setName in interface Endpointname - Name for the endpoint.public boolean isActive(MessageContext synMessageContext)
isActive in interface EndpointsynMessageContext - MessageContext of the current message. This is not used here.
public void setActive(boolean active,
MessageContext synMessageContext)
setActive in interface Endpointactive - true if active. false otherwise.synMessageContext - MessageContext of the current message. This is not used here.public void send(MessageContext synCtx)
send in interface EndpointsynCtx - MessageContext sent by client to Synapse
public void onChildEndpointFail(Endpoint endpoint,
MessageContext synMessageContext)
Endpoint
onChildEndpointFail in interface Endpointendpoint - The child endpoint which caused the exception.synMessageContext - MessageContext that was used in the failed attempt.public void setParentEndpoint(Endpoint parentEndpoint)
Endpoint
setParentEndpoint in interface EndpointparentEndpoint - parent endpoint containing this endpoint. It should handle the onChildEndpointFail(...)
callback.public long getSuspendOnFailDuration()
public void setSuspendOnFailDuration(long suspendOnFailDuration)
public void onFault(MessageContext synCtx)
FaultHandler
onFault in class FaultHandlersynCtx - SynapseMessageContext of which the fault occured message comprises
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||