Skip navigation links

Java API Reference for Oracle Infrastructure Web Services
11
Release 1 (11.1.1)

E10654-02


oracle.webservices.portability
Interface ProviderPlatformAdapter


public interface ProviderPlatformAdapter

Implementations of this interface provide host-platform-specific provider functionality.


Field Summary
static String APP_NAME_CONTEXT_ATTRIBUTE
           
static String MODULE_NAME_CONTEXT_ATTRIBUTE
           
static String WEBSERVICE_NAME_EXECUTION_CONTEXT_ATTRIBUTE
           
static String WEBSERVICE_PORT_NAME_EXECUTION_CONTEXT_ATTRIBUTE
           

 

Method Summary
 void addServiceToCluster(ProviderProcessorInfo processor, String providerName, String pathInfo, URL wsdlURL, QName wsdlPort, QName serviceQName, Object policy)
          Make a dynamic endpoint accessible from all instances of an application across a configuration group or cluster.
 boolean authorize(com.oracle.server.Invocation invocation)
           
 ProviderInterceptorPipeline createProviderInterceptorPipeline(PortId portId, String pathInfo, URL wsdlURL, ProviderProcessorInfo processor, Definition wsdl, Element config, DynamicEndpointNameHelper helper)
          Factory method for creating a ProviderInterceptorPipeline instance for a provider-based endpoint.
 SessionManager createSessionManager(ServletContext servletContext)
          Factory method for creating a SessionManager instance for a provider-based endpoint.
 void establishSubjectInServlet(Map<String,Object> messageContext, HttpServletRequest httpReq)
           
 void establishSubjectOnThreadContext(Map<String,Object> messageContext, String propertyName)
           
 void establishSubjectOnThreadContext(oracle.j2ee.ws.common.soap.message.SOAPMessageContext messageContext, String propertyName)
           
 String getApplicationName(ProviderConfig providerConfig)
          Determine the name of the application with which the provider is associated.
 String getModuleName(ProviderConfig providerConfig)
          Determine the name of the J2EE module with which the provider is associated.
 String getPathInfo(ProviderConfig providerConfig, String servletLink)
          Determine the pathInfo for the provider.
 ProviderPlatformStatisticsAdapter getStatisticsAdapter()
          Accessor for the ProviderPlatformStatisticsAdapter instance associated with this instance.
 boolean getXmlValidate()
           
<T> T
makeCollocationProxy(Class<T> ifc, T impl)
           
 void propagateIdentityContextToMessageContext(MessageContext providerContext, oracle.j2ee.ws.common.soap.message.SOAPMessageContext messageContext)
           
 void registerProviderEndpointMBean(ProviderProcessorInfo processor)
          Register an MBean for a provider endpoint.
 void removeServiceFromCluster(ProviderProcessorInfo processor, String providerName, String pathInfo)
          Remove a dynamic endpoint from a configuration group or cluster.
 void resetExecutionContext()
           
<T> T
runAs(String username, PrivilegedExceptionAction<T> action, String contextID)
           
<T> T
runAs(Subject subject, PrivilegedExceptionAction<T> action)
           
<T> T
runAsAnonymousUser(PrivilegedExceptionAction<T> action, String contextID)
           
 void setupExecutionContext(String appName, WebServiceEndpointInfo endpoint, String moduleName)
           

 

Field Detail

APP_NAME_CONTEXT_ATTRIBUTE

static final String APP_NAME_CONTEXT_ATTRIBUTE
See Also:
Constant Field Values

MODULE_NAME_CONTEXT_ATTRIBUTE

static final String MODULE_NAME_CONTEXT_ATTRIBUTE
See Also:
Constant Field Values

WEBSERVICE_NAME_EXECUTION_CONTEXT_ATTRIBUTE

static final String WEBSERVICE_NAME_EXECUTION_CONTEXT_ATTRIBUTE
See Also:
Constant Field Values

WEBSERVICE_PORT_NAME_EXECUTION_CONTEXT_ATTRIBUTE

static final String WEBSERVICE_PORT_NAME_EXECUTION_CONTEXT_ATTRIBUTE
See Also:
Constant Field Values

Method Detail

createProviderInterceptorPipeline

ProviderInterceptorPipeline createProviderInterceptorPipeline(PortId portId,
                                                              String pathInfo,
                                                              URL wsdlURL,
                                                              ProviderProcessorInfo processor,
                                                              Definition wsdl,
                                                              Element config,
                                                              DynamicEndpointNameHelper helper)
                                                              throws InstanceAlreadyExistsException
Factory method for creating a ProviderInterceptorPipeline instance for a provider-based endpoint.
Parameters:
portId - The port identifier for the endpoint.
pathInfo - The path info associated with the endpoint.
wsdlURL - The location of the WSDL definition for the service for which the specified provider is an endpoint.
processor - The ProviderProcessorInfo for the provider instance.
wsdl - The processed WSDL definition.
config - The pipeline configuration element (from oracle-webservices.xml).
Returns:
A ProviderInterceptorPipeline instance.
Throws:
InstanceAlreadyExistsException

getApplicationName

String getApplicationName(ProviderConfig providerConfig)
Determine the name of the application with which the provider is associated.
Parameters:
providerConfig - The configuration for the provider in question.
Returns:
The name of the associated application.

getModuleName

String getModuleName(ProviderConfig providerConfig)
Determine the name of the J2EE module with which the provider is associated.
Parameters:
providerConfig - The configuration for the provider in question.
Returns:
The name of the associated J2EE module.

getPathInfo

String getPathInfo(ProviderConfig providerConfig,
                   String servletLink)
Determine the pathInfo for the provider.
Parameters:
providerConfig - The configuration for the provider in question.
servletLink - The value of the servlet-link element of the provider's deployment descriptor.
Returns:
The pathInfo for the provider.

getStatisticsAdapter

ProviderPlatformStatisticsAdapter getStatisticsAdapter()
Accessor for the ProviderPlatformStatisticsAdapter instance associated with this instance.
Returns:
A ProviderPlatformStatisticsAdapter instance.

registerProviderEndpointMBean

void registerProviderEndpointMBean(ProviderProcessorInfo processor)
                                   throws MBeanRegistrationException,
                                          NotCompliantMBeanException,
                                          InstanceAlreadyExistsException
Register an MBean for a provider endpoint.
Parameters:
processor - The processor associated with the provider endpoint.
Throws:
MBeanRegistrationException
NotCompliantMBeanException
InstanceAlreadyExistsException

addServiceToCluster

void addServiceToCluster(ProviderProcessorInfo processor,
                         String providerName,
                         String pathInfo,
                         URL wsdlURL,
                         QName wsdlPort,
                         QName serviceQName,
                         Object policy)
                         throws MalformedObjectNameException,
                                ReflectionException,
                                InstanceNotFoundException,
                                MBeanException,
                                IOException,
                                NamingException
Make a dynamic endpoint accessible from all instances of an application across a configuration group or cluster.
Parameters:
processor - The processor associated with the provider that is managing the endpoint.
providerName - The name of the provider.
pathInfo - The URL pathinfo associated with the endpoint.
wsdlURL - The URL of the WSDL definition associated with the endpoint.
wsdlPort - The QName of the port that the endpoint is providing.
serviceQName - The QName of the web service associated with the endpoint.
policy - A management policy Object.
Throws:
MalformedObjectNameException
ReflectionException
InstanceNotFoundException
MBeanException
IOException
NamingException

removeServiceFromCluster

void removeServiceFromCluster(ProviderProcessorInfo processor,
                              String providerName,
                              String pathInfo)
                              throws MalformedObjectNameException,
                                     IOException,
                                     ReflectionException,
                                     InstanceNotFoundException,
                                     MBeanException,
                                     NamingException
Remove a dynamic endpoint from a configuration group or cluster.
Parameters:
processor - The processor associated with the provider that is managing the endpoint.
providerName - The name of the provider.
pathInfo - The URL pathinfo associated with the endpoint.
Throws:
MalformedObjectNameException
IOException
ReflectionException
InstanceNotFoundException
MBeanException
NamingException

makeCollocationProxy

<T> T makeCollocationProxy(Class<T> ifc,
                           T impl)

setupExecutionContext

void setupExecutionContext(String appName,
                           WebServiceEndpointInfo endpoint,
                           String moduleName)

resetExecutionContext

void resetExecutionContext()

propagateIdentityContextToMessageContext

void propagateIdentityContextToMessageContext(MessageContext providerContext,
                                              oracle.j2ee.ws.common.soap.message.SOAPMessageContext messageContext)

establishSubjectOnThreadContext

void establishSubjectOnThreadContext(oracle.j2ee.ws.common.soap.message.SOAPMessageContext messageContext,
                                     String propertyName)

establishSubjectOnThreadContext

void establishSubjectOnThreadContext(Map<String,Object> messageContext,
                                     String propertyName)

establishSubjectInServlet

void establishSubjectInServlet(Map<String,Object> messageContext,
                               HttpServletRequest httpReq)

runAs

<T> T runAs(Subject subject,
            PrivilegedExceptionAction<T> action)
        throws SecurityException
Throws:
SecurityException

runAs

<T> T runAs(String username,
            PrivilegedExceptionAction<T> action,
            String contextID)
        throws SecurityException
Throws:
SecurityException

runAsAnonymousUser

<T> T runAsAnonymousUser(PrivilegedExceptionAction<T> action,
                         String contextID)
                     throws SecurityException
Throws:
SecurityException

authorize

boolean authorize(com.oracle.server.Invocation invocation)

getXmlValidate

boolean getXmlValidate()

createSessionManager

SessionManager createSessionManager(ServletContext servletContext)
Factory method for creating a SessionManager instance for a provider-based endpoint.
Parameters:
servletContext - the servlet context for the endpoint.
Returns:
A SessionManager instance.

Skip navigation links

Copyright © 2006, 2009 Oracle. All Rights Reserved.