com.atlassian.jira.soap.axis
Class JiraAxisJavaPicoRPCProvider
java.lang.Object
org.apache.axis.handlers.BasicHandler
org.apache.axis.providers.BasicProvider
org.apache.axis.providers.java.JavaProvider
org.apache.axis.providers.java.RPCProvider
com.atlassian.jira.soap.axis.JiraAxisJavaPicoRPCProvider
- All Implemented Interfaces:
- Serializable, org.apache.axis.Handler
public class JiraAxisJavaPicoRPCProvider
- extends org.apache.axis.providers.java.RPCProvider
This is an RPCProvider
that
uses PICO to create SOAP service instances based on service class name
- See Also:
- Serialized Form
Fields inherited from class org.apache.axis.providers.java.RPCProvider |
log |
Fields inherited from class org.apache.axis.providers.java.JavaProvider |
entLog, OPTION_ALLOWEDMETHODS, OPTION_CLASSNAME, OPTION_SCOPE |
Fields inherited from class org.apache.axis.providers.BasicProvider |
OPTION_EXTRACLASSES, OPTION_WSDL_INPUTSCHEMA, OPTION_WSDL_PORTTYPE, OPTION_WSDL_SERVICEELEMENT, OPTION_WSDL_SERVICEPORT, OPTION_WSDL_SOAPACTION_MODE, OPTION_WSDL_TARGETNAMESPACE |
Fields inherited from class org.apache.axis.handlers.BasicHandler |
makeLockable, name, options |
Method Summary |
protected org.apache.axis.message.RPCElement |
getBody(org.apache.axis.message.SOAPEnvelope reqEnv,
org.apache.axis.MessageContext msgContext)
This allows access to the SOAP body given an AXIS message context. |
protected Class |
getServiceClass(String clsName,
org.apache.axis.handlers.soap.SOAPService service,
org.apache.axis.MessageContext msgContext)
|
protected int |
getTokenParameterIndex(String operationName)
This is called to allow the RPC plugins to tell us what index the token occurs in the operation. |
protected Object |
makeNewServiceObject(org.apache.axis.MessageContext msgContext,
String clsName)
Called by AXIS to create a new service object instance for a specified class name |
protected String |
resolveTokenToUserName(String token)
This can be called to resolve a token to user name. |
Methods inherited from class org.apache.axis.providers.java.RPCProvider |
checkMethodName, createResponseBody, getOperationDesc, invokeMethod, processMessage |
Methods inherited from class org.apache.axis.providers.java.JavaProvider |
getServiceClassName, getServiceClassNameOptionName, getServiceObject, initServiceDesc, invoke |
Methods inherited from class org.apache.axis.providers.BasicProvider |
addOperation, generateWSDL, getOperationName, getOperationNames, getOperationQNames |
Methods inherited from class org.apache.axis.handlers.BasicHandler |
canHandleBlock, cleanup, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JiraAxisJavaPicoRPCProvider
public JiraAxisJavaPicoRPCProvider(SoapModuleDescriptor descriptor)
getServiceClass
protected Class getServiceClass(String clsName,
org.apache.axis.handlers.soap.SOAPService service,
org.apache.axis.MessageContext msgContext)
- Overrides:
getServiceClass
in class org.apache.axis.providers.java.JavaProvider
makeNewServiceObject
protected Object makeNewServiceObject(org.apache.axis.MessageContext msgContext,
String clsName)
throws Exception
- Called by AXIS to create a new service object instance for a specified class name
- Overrides:
makeNewServiceObject
in class org.apache.axis.providers.java.JavaProvider
- Parameters:
msgContext
- the message context in playclsName
- the class name to instantiate
- Returns:
- a newly instantiated service object
- Throws:
Exception
- if something goes wrong
getBody
protected org.apache.axis.message.RPCElement getBody(org.apache.axis.message.SOAPEnvelope reqEnv,
org.apache.axis.MessageContext msgContext)
throws Exception
- This allows access to the SOAP body given an AXIS message context.
- Overrides:
getBody
in class org.apache.axis.providers.java.RPCProvider
- Parameters:
reqEnv
- the outer soap envelopemsgContext
- the AXIS message context in play
- Returns:
- an RPCElement that represents the SOAP body
- Throws:
Exception
resolveTokenToUserName
protected String resolveTokenToUserName(String token)
- This can be called to resolve a token to user name. This will call ALL the RPC plugins until one
of them responds with a non null user name.
- Parameters:
token
- the token to resolve
- Returns:
- a user name or null if its cant be resolved
getTokenParameterIndex
protected int getTokenParameterIndex(String operationName)
- This is called to allow the RPC plugins to tell us what index the token occurs in the operation. It can return -1
to indicate that no token is available
- Parameters:
operationName
- the name of the current SOAP operation
- Returns:
- the index of the token parameter or -1 to indicate that its not known
Copyright © 2002-2012 Atlassian. All Rights Reserved.