com.atlassian.jira.soap.axis
Class JiraAxisJavaPicoRPCProvider

java.lang.Object
  extended by org.apache.axis.handlers.BasicHandler
      extended by org.apache.axis.providers.BasicProvider
          extended by org.apache.axis.providers.java.JavaProvider
              extended by org.apache.axis.providers.java.RPCProvider
                  extended by com.atlassian.jira.soap.axis.JiraAxisJavaPicoRPCProvider
All Implemented Interfaces:
java.io.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

Field Summary
 
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
 
Constructor Summary
JiraAxisJavaPicoRPCProvider(SoapModuleDescriptor descriptor)
           
 
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  java.lang.Class getServiceClass(java.lang.String clsName, org.apache.axis.handlers.soap.SOAPService service, org.apache.axis.MessageContext msgContext)
           
protected  int getTokenParameterIndex(java.lang.String operationName)
          This is called to allow the RPC plugins to tell us what index the token occurs in the operation.
protected  java.lang.Object makeNewServiceObject(org.apache.axis.MessageContext msgContext, java.lang.String clsName)
          Called by AXIS to create a new service object instance for a specified class name
protected  java.lang.String resolveTokenToUserName(java.lang.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
 

Constructor Detail

JiraAxisJavaPicoRPCProvider

public JiraAxisJavaPicoRPCProvider(SoapModuleDescriptor descriptor)
Method Detail

getServiceClass

protected java.lang.Class getServiceClass(java.lang.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 java.lang.Object makeNewServiceObject(org.apache.axis.MessageContext msgContext,
                                                java.lang.String clsName)
                                         throws java.lang.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 play
clsName - the class name to instantiate
Returns:
a newly instantiated service object
Throws:
java.lang.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 java.lang.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 envelope
msgContext - the AXIS message context in play
Returns:
an RPCElement that represents the SOAP body
Throws:
java.lang.Exception

resolveTokenToUserName

protected java.lang.String resolveTokenToUserName(java.lang.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(java.lang.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-2011 Atlassian. All Rights Reserved.