org.apache.axis2.clientapi
Class Stub
java.lang.Object
org.apache.axis2.clientapi.Stub
- public abstract class Stub
- extends java.lang.Object
Constructor Summary |
protected |
Stub()
|
Method Summary |
void |
_endSession()
|
java.lang.Object |
_get(java.lang.String key)
|
protected java.lang.String |
_getServiceContextID()
|
java.lang.Object |
_getSessionInfo(java.lang.String key)
|
void |
_put(java.lang.String key,
java.lang.Object value)
|
void |
_setSessionInfo(java.lang.String key,
java.lang.Object value)
|
void |
_startSession()
|
protected SOAPEnvelope |
createEnvelope()
|
protected OMElement |
getElement(SOAPEnvelope env,
java.lang.String type)
Extract the correct element - A util method |
protected OMElement |
getElementFromReader(XMLStreamReader reader)
|
protected MessageContext |
getMessageContext()
get the message context |
protected void |
populateProperties(Call call)
|
void |
setDoREST(boolean doRest)
|
void |
setSOAPVersion(int soapVersion)
Set the soap version |
void |
setTransportInfo(java.lang.String senderTransport,
java.lang.String listenerTransport,
boolean useSeparateListener)
|
protected void |
setValueDoc(SOAPEnvelope env,
OMElement value)
|
protected void |
setValueDoc(SOAPEnvelope env,
OMElement value,
boolean isHeader)
|
protected void |
setValueRPC(SOAPEnvelope env,
java.lang.String methodNamespaceURI,
java.lang.String methodName,
java.lang.String[] paramNames,
java.lang.Object[] values)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOAP_11
public static final int SOAP_11
- See Also:
- Constant Field Values
SOAP_12
public static final int SOAP_12
- See Also:
- Constant Field Values
_configurationContext
protected ConfigurationContext _configurationContext
_service
protected static ServiceDescription _service
_serviceContext
protected ServiceContext _serviceContext
toEPR
protected EndpointReference toEPR
doRest
protected boolean doRest
senderTransport
protected java.lang.String senderTransport
listenerTransport
protected java.lang.String listenerTransport
useSeparateListener
protected boolean useSeparateListener
soapVesrion
protected int soapVesrion
propertyMap
protected java.util.HashMap propertyMap
_maintainSession
protected boolean _maintainSession
- If _maintainSession is set to True all the calls will use the same
ServiceContext and the user can Share information through that
ServiceContext across operations.
_currentSessionId
protected java.lang.String _currentSessionId
Stub
protected Stub()
setTransportInfo
public void setTransportInfo(java.lang.String senderTransport,
java.lang.String listenerTransport,
boolean useSeparateListener)
throws AxisFault
- Parameters:
senderTransport
- listenerTransport
- useSeparateListener
-
- Throws:
AxisFault
_put
public void _put(java.lang.String key,
java.lang.Object value)
- Parameters:
key
- value
-
_get
public java.lang.Object _get(java.lang.String key)
- Parameters:
key
-
- Returns:
- the object
setDoREST
public void setDoREST(boolean doRest)
- Parameters:
doRest
-
setSOAPVersion
public void setSOAPVersion(int soapVersion)
- Set the soap version
- Parameters:
soapVersion
-
_setSessionInfo
public void _setSessionInfo(java.lang.String key,
java.lang.Object value)
throws java.lang.Exception
- Throws:
java.lang.Exception
_getSessionInfo
public java.lang.Object _getSessionInfo(java.lang.String key)
throws java.lang.Exception
- Throws:
java.lang.Exception
_startSession
public void _startSession()
_endSession
public void _endSession()
_getServiceContextID
protected java.lang.String _getServiceContextID()
createEnvelope
protected SOAPEnvelope createEnvelope()
throws SOAPProcessingException
- Throws:
SOAPProcessingException
setValueRPC
protected void setValueRPC(SOAPEnvelope env,
java.lang.String methodNamespaceURI,
java.lang.String methodName,
java.lang.String[] paramNames,
java.lang.Object[] values)
getElementFromReader
protected OMElement getElementFromReader(XMLStreamReader reader)
setValueDoc
protected void setValueDoc(SOAPEnvelope env,
OMElement value)
setValueDoc
protected void setValueDoc(SOAPEnvelope env,
OMElement value,
boolean isHeader)
getElement
protected OMElement getElement(SOAPEnvelope env,
java.lang.String type)
- Extract the correct element - A util method
- Parameters:
env
- type
-
- Returns:
- the relevant element to be databound
getMessageContext
protected MessageContext getMessageContext()
throws AxisFault
- get the message context
- Throws:
AxisFault
populateProperties
protected void populateProperties(Call call)