|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.muse.core.AbstractResourceClient
AbstractResourceClient is a base class for resource clients that are deployed as doc-literal services using WS-Addressing. It can be used to send raw SOAP messages to web services, but it mainly serves as the foundation for more concrete client classes.
| Constructor Summary | |
|---|---|
AbstractResourceClient(EndpointReference destination)
This is a convenience constructor that calls this(EndpointReference, EndpointReference) with the WS-A anonymous EPR as the second parameter (the source EPR). |
|
AbstractResourceClient(EndpointReference destination,
EndpointReference source)
This is a convenience constructor that calls this(EndpointReference, EndpointReference, SoapClient) with an instance of SimpleSoapClient. |
|
AbstractResourceClient(EndpointReference destination,
EndpointReference source,
Environment environment)
This is a convenience constructor that calls this(EndpointReference, EndpointReference, SoapClient) with the SoapClient provided by the given Environment. |
|
AbstractResourceClient(EndpointReference destination,
EndpointReference source,
SoapClient soapClient)
|
|
| Method Summary | |
|---|---|
EndpointReference |
getDestination()
|
EndpointReference |
getEndpointReference()
|
SoapClient |
getSoapClient()
|
int |
getSoapMonitorPort()
|
EndpointReference |
getSource()
|
java.io.PrintWriter |
getTraceWriter()
|
java.lang.Object |
invoke(ProxyHandler handler,
java.lang.Object[] parameters)
This is a convenience method that uses the given ProxyHandler to serialize the parameters (and deserialize the response) before calling invoke(String, Element). |
java.lang.Object |
invoke(ProxyHandler handler,
java.lang.Object[] parameters,
org.w3c.dom.Element[] extraHeaders)
This is a convenience method that uses the given ProxyHandler to serialize the parameters (and deserialize the response) before calling invoke(String, Element). |
org.w3c.dom.Element |
invoke(java.lang.String action,
org.w3c.dom.Element soapBody)
A generic method invocation mechanism - this can be used by other proxy methods as well as users in order to send arbitrary requests to a resource. |
org.w3c.dom.Element |
invoke(java.lang.String action,
org.w3c.dom.Element soapBody,
org.w3c.dom.Element[] extraHeaders)
A generic method invocation mechanism - this can be used by other proxy methods as well as users in order to send arbitrary requests to a resource. |
boolean |
isUsingSoapMonitor()
|
boolean |
isUsingTrace()
|
void |
setTrace(boolean trace)
|
void |
setTraceWriter(java.io.PrintWriter writer)
|
void |
startSoapMonitor(int monitorPort)
Causes the SoapClient to send messages to the given port. |
void |
stopSoapMonitor()
If SOAP monitoring was in use, the client will revert back to sending the messages to the port in the EPR's wsa:Address. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractResourceClient(EndpointReference destination)
WsaConstants.ANONYMOUS_EPR
public AbstractResourceClient(EndpointReference destination,
EndpointReference source)
AbstractResourceClient(EndpointReference, EndpointReference, SoapClient)
public AbstractResourceClient(EndpointReference destination,
EndpointReference source,
Environment environment)
AbstractResourceClient(EndpointReference, EndpointReference, SoapClient),
Environment.getSoapClient()
public AbstractResourceClient(EndpointReference destination,
EndpointReference source,
SoapClient soapClient)
destination - The EPR of the resource that will receive requests.source - The EPR of the resource that is sending requests.soapClient - The SOAP client that will be used to package and send requests.| Method Detail |
public EndpointReference getDestination()
public EndpointReference getEndpointReference()
public SoapClient getSoapClient()
public int getSoapMonitorPort()
getSoapMonitorPort in interface SoapMonitorpublic EndpointReference getSource()
public java.io.PrintWriter getTraceWriter()
public java.lang.Object invoke(ProxyHandler handler,
java.lang.Object[] parameters)
throws SoapFault
SoapFaultinvoke(String, Element)
public java.lang.Object invoke(ProxyHandler handler,
java.lang.Object[] parameters,
org.w3c.dom.Element[] extraHeaders)
throws SoapFault
SoapFaultinvoke(String, Element)
public org.w3c.dom.Element invoke(java.lang.String action,
org.w3c.dom.Element soapBody)
throws SoapFault
SoapFault
public org.w3c.dom.Element invoke(java.lang.String action,
org.w3c.dom.Element soapBody,
org.w3c.dom.Element[] extraHeaders)
throws SoapFault
SoapFaultpublic boolean isUsingSoapMonitor()
isUsingSoapMonitor in interface SoapMonitorpublic boolean isUsingTrace()
public void setTrace(boolean trace)
public void setTraceWriter(java.io.PrintWriter writer)
public void startSoapMonitor(int monitorPort)
SoapMonitor
startSoapMonitor in interface SoapMonitormonitorPort - A positive integer - 0 to 65535.public void stopSoapMonitor()
SoapMonitor
stopSoapMonitor in interface SoapMonitor
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||