|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.muse.core.AbstractResourceClient
public abstract class 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()
|
PrintWriter |
getTraceWriter()
|
Object |
invoke(ProxyHandler handler,
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). |
Object |
invoke(ProxyHandler handler,
Object[] parameters,
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). |
Element |
invoke(String action,
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. |
Element |
invoke(String action,
Element soapBody,
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(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 SoapMonitor
public EndpointReference getSource()
public PrintWriter getTraceWriter()
getTraceWriter
in interface Traceable
public Object invoke(ProxyHandler handler, Object[] parameters) throws SoapFault
SoapFault
invoke(String, Element)
public Object invoke(ProxyHandler handler, Object[] parameters, Element[] extraHeaders) throws SoapFault
SoapFault
invoke(String, Element)
public Element invoke(String action, Element soapBody) throws SoapFault
SoapFault
public Element invoke(String action, Element soapBody, Element[] extraHeaders) throws SoapFault
SoapFault
public boolean isUsingSoapMonitor()
isUsingSoapMonitor
in interface SoapMonitor
public boolean isUsingTrace()
isUsingTrace
in interface Traceable
public void setTrace(boolean trace)
setTrace
in interface Traceable
trace
- If 'true', tracing is turned on and messages sent to the trace log.public void setTraceWriter(PrintWriter writer)
setTraceWriter
in interface Traceable
writer
- The trace log - note that you can make a PrintWriter from
System.out and System.err by wrapping these fields in an
instance of PrintWriter.public void startSoapMonitor(int monitorPort)
SoapMonitor
startSoapMonitor
in interface SoapMonitor
monitorPort
- 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 |