Top Description Constructors Methods
org.apache.naming.factory.webservices

public Class ServiceRefFactory

extends Object
implements ObjectFactory
Class Inheritance
All Implemented Interfaces
javax.naming.spi.ObjectFactory
Imports
java.lang.reflect.InvocationTargetException, .Method, .Proxy, java.net.URI, java.util.ArrayList, .Arrays, .Enumeration, .Hashtable, .Iterator, .List, .Map, .Properties, javax.naming.Context, .Name, .NamingException, .RefAddr, javax.naming.spi.ObjectFactory, javax.wsdl.Definition, .Port, javax.wsdl.extensions.ExtensibilityElement, javax.wsdl.extensions.soap.SOAPAddress, javax.wsdl.factory.WSDLFactory, javax.wsdl.xml.WSDLReader, javax.xml.namespace.QName, javax.xml.rpc.Service, .ServiceFactory, javax.xml.rpc.handler.Handler, .HandlerChain, .HandlerInfo, .HandlerRegistry, org.apache.naming.HandlerRef, .ServiceRef

Object factory for Web Services.
Author
Fabien Carrion

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
getObjectInstance(Object
The reference object describing the webservice
obj
,
Name
The name of this object relative to nameCtx, or null if no name is specified.
name
,
Context
The context relative to which the name parameter is specified, or null if name is relative to the default initial context.
nameCtx
,
Hashtable<?, ?>
The possibly null environment that is used in creating the object.
environment
)

Implements javax.naming.spi.ObjectFactory.getObjectInstance.

Create a new serviceref instance.

private String

Returns:

Returns the endpoint URL of the given Port
getSOAPLocation
(Port
analyzed port
port
)

private void
initHandlerChain(QName portName, HandlerRegistry handlerRegistry, HandlerInfo handlerInfo, List<String> soaprolesToAdd)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ServiceRefFactoryback to summary
public ServiceRefFactory()

Method Detail

getObjectInstanceback to summary
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception

Implements javax.naming.spi.ObjectFactory.getObjectInstance.

Create a new serviceref instance.

Parameters
obj:Object

The reference object describing the webservice

name:Name

Doc from javax.naming.spi.ObjectFactory.getObjectInstance.

The name of this object relative to nameCtx, or null if no name is specified.

nameCtx:Context

Doc from javax.naming.spi.ObjectFactory.getObjectInstance.

The context relative to which the name parameter is specified, or null if name is relative to the default initial context.

environment:Hashtable<?, ?>

Doc from javax.naming.spi.ObjectFactory.getObjectInstance.

The possibly null environment that is used in creating the object.

Returns:Object

Doc from javax.naming.spi.ObjectFactory.getObjectInstance.

The object created; null if an object cannot be created.

Annotations
@Override
Exceptions
Exception:

Doc from javax.naming.spi.ObjectFactory.getObjectInstance.

if this object factory encountered an exception while attempting to create an object, and no other object factories are to be tried.

getSOAPLocationback to summary
private String getSOAPLocation(Port port)
Parameters
port:Port

analyzed port

Returns:String

Returns the endpoint URL of the given Port

initHandlerChainback to summary
private void initHandlerChain(QName portName, HandlerRegistry handlerRegistry, HandlerInfo handlerInfo, List<String> soaprolesToAdd)