org.apache.axis2.client
Class MEPClient

java.lang.Object
  extended byorg.apache.axis2.client.MEPClient
Direct Known Subclasses:
InOnlyMEPClient, InOutMEPClient

public abstract class MEPClient
extends Object

This is the super class for all MEPClients.

See Also:
OperationClient

Field Summary
protected  Options clientOptions
          Deprecated. Client will pass all the parameters to this invocation using this.
protected  String mep
          Deprecated.  
 
Constructor Summary
MEPClient(ServiceContext service, String mep)
          Deprecated.  
 
Method Summary
 void addSOAPHeader(org.apache.ws.commons.om.OMElement soapHeaderBlock)
          Deprecated. Allows users to add a SOAP header block.
 void addSOAPHeader(QName soapHeaderQName, String soapHeaderText)
          Deprecated. Allows users to add their own headers to the out going message from the client.
protected  void addUserAddedSOAPHeaders(MessageContext msgCtx, Options options)
          Deprecated.  
protected  void assumeServiceContext(String clientHome)
          Deprecated. Assumes the values for the ConfigurationContext and ServiceContext to make the NON WSDL cases simple.
protected abstract  void configureTransportInformation(MessageContext msgCtxt)
          Deprecated. This gives chance to the derived class to configure its transport from the information injected by the user via options.
protected  org.apache.ws.commons.soap.SOAPEnvelope createDefaultSOAPEnvelope()
          Deprecated. Creates SOAPEvelope(in terms of version) from the values set.
 void engageModule(QName name)
          Deprecated. Engages a given module to the current invocation.
 Options getClientOptions()
          Deprecated.  
 ServiceContext getServiceContext()
          Deprecated.  
protected  TransportOutDescription inferTransport(EndpointReference epr)
          Deprecated. Infers the transport by looking at the URL.
protected  TransportOutDescription inferTransport(String uri)
          Deprecated.  
protected  void inferTransportOutDescription(MessageContext msgCtx)
          Deprecated.  
protected  void prepareInvocation(AxisOperation axisop, MessageContext msgCtx)
          Deprecated. Prepares the message context for invocation.
protected  MessageContext prepareTheSOAPEnvelope(org.apache.ws.commons.om.OMElement toSend)
          Deprecated. Prepares the SOAPEnvelope using the payload.
 void setClientOptions(Options clientOptions)
          Deprecated. Sets all client options and parameters for this invocation.
 void setServiceContext(ServiceContext serviceContext)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientOptions

protected Options clientOptions
Deprecated. 
Client will pass all the parameters to this invocation using this.


mep

protected final String mep
Deprecated. 
Constructor Detail

MEPClient

public MEPClient(ServiceContext service,
                 String mep)
Deprecated. 
Method Detail

addSOAPHeader

public void addSOAPHeader(org.apache.ws.commons.om.OMElement soapHeaderBlock)
Deprecated. 
Allows users to add a SOAP header block.

Parameters:
soapHeaderBlock -

addSOAPHeader

public void addSOAPHeader(QName soapHeaderQName,
                          String soapHeaderText)
Deprecated. 
Allows users to add their own headers to the out going message from the client. It is restrictive, in the sense, that user can set a header with only one text.
    <HeaderBlockName>your text</HeaderBlockName>
 
. A more flexible way is to use addSOAPHeader(OMElement).

Parameters:
soapHeaderQName -
soapHeaderText -

addUserAddedSOAPHeaders

protected void addUserAddedSOAPHeaders(MessageContext msgCtx,
                                       Options options)
Deprecated. 

assumeServiceContext

protected void assumeServiceContext(String clientHome)
                             throws AxisFault
Deprecated. 
Assumes the values for the ConfigurationContext and ServiceContext to make the NON WSDL cases simple.

Throws:
AxisFault

configureTransportInformation

protected abstract void configureTransportInformation(MessageContext msgCtxt)
                                               throws AxisFault
Deprecated. 
This gives chance to the derived class to configure its transport from the information injected by the user via options. This is called within the prepare invocation method, so user does not need to call this explicitly.

Throws:
AxisFault

createDefaultSOAPEnvelope

protected org.apache.ws.commons.soap.SOAPEnvelope createDefaultSOAPEnvelope()
                                                                     throws AxisFault
Deprecated. 
Creates SOAPEvelope(in terms of version) from the values set.

Returns:
Returns SOAPEnvelope.
Throws:
AxisFault

engageModule

public void engageModule(QName name)
                  throws AxisFault
Deprecated. 
Engages a given module to the current invocation. But in order to call this method, the module *MUST* be enabled ( i.e. picked up by the deployment and known to Axis Engine). If not, an exception will be thrown. To be enabled, the modules are added to the AXIS2_REPOSITORY/modules directory.

Parameters:
name -
Throws:
AxisFault

inferTransport

protected TransportOutDescription inferTransport(EndpointReference epr)
                                          throws AxisFault
Deprecated. 
Infers the transport by looking at the URL. The URL can be http:// tcp:/ mail:// local://.

Parameters:
epr -
Returns:
Returns TransportOutDescription.
Throws:
AxisFault

inferTransport

protected TransportOutDescription inferTransport(String uri)
                                          throws AxisFault
Deprecated. 
Throws:
AxisFault

inferTransportOutDescription

protected void inferTransportOutDescription(MessageContext msgCtx)
                                     throws AxisFault
Deprecated. 
Throws:
AxisFault

prepareInvocation

protected void prepareInvocation(AxisOperation axisop,
                                 MessageContext msgCtx)
                          throws AxisFault
Deprecated. 
Prepares the message context for invocation. The properties in the MEPClient are copied to the MessageContext.

Throws:
AxisFault

prepareTheSOAPEnvelope

protected MessageContext prepareTheSOAPEnvelope(org.apache.ws.commons.om.OMElement toSend)
                                         throws AxisFault
Deprecated. 
Prepares the SOAPEnvelope using the payload.

Parameters:
toSend -
Returns:
Returns MessageContext.
Throws:
AxisFault

getClientOptions

public Options getClientOptions()
Deprecated. 

getServiceContext

public ServiceContext getServiceContext()
Deprecated. 

setClientOptions

public void setClientOptions(Options clientOptions)
Deprecated. 
Sets all client options and parameters for this invocation.

Parameters:
clientOptions -
See Also:
for more details.

setServiceContext

public void setServiceContext(ServiceContext serviceContext)
Deprecated.