Package org.apache.naming
Class ServiceRef
- java.lang.Object
-
- javax.naming.Reference
-
- org.apache.naming.AbstractRef
-
- org.apache.naming.ServiceRef
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class ServiceRef extends AbstractRef
Represents a reference web service.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_FACTORYDefault factory for this reference.static java.lang.StringJAXRPCMAPPINGJaxrpcmapping address type.static java.lang.StringPORTCOMPONENTLINKport-component-ref/port-component-link address type.static java.lang.StringSERVICE_INTERFACEService Classname address type.static java.lang.StringSERVICE_LOCAL_PARTService local part address type.static java.lang.StringSERVICE_NAMESPACEServiceQname address type.static java.lang.StringSERVICEENDPOINTINTERFACEport-component-ref/service-endpoint-interface address type.static java.lang.StringWSDLWsdl Location address type.
-
Constructor Summary
Constructors Constructor Description ServiceRef(java.lang.String refname, java.lang.String serviceInterface, java.lang.String[] serviceQname, java.lang.String wsdl, java.lang.String jaxrpcmapping)Creates a ServiceRef with the given parameters and no factory information.ServiceRef(java.lang.String refname, java.lang.String serviceInterface, java.lang.String[] serviceQname, java.lang.String wsdl, java.lang.String jaxrpcmapping, java.lang.String factory, java.lang.String factoryLocation)Creates a ServiceRef with the given parameters and factory information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHandler(HandlerRef handler)Adds a handler reference to the list.protected java.lang.StringgetDefaultFactoryClassName()Returns the default factory class name.HandlerRefgetHandler()Add and Get Handlers classes.intgetHandlersSize()Returns the number of handlers in the list.-
Methods inherited from class org.apache.naming.AbstractRef
getFactoryClassName, toString
-
-
-
-
Field Detail
-
DEFAULT_FACTORY
public static final java.lang.String DEFAULT_FACTORY
Default factory for this reference.- See Also:
- Constant Field Values
-
SERVICE_INTERFACE
public static final java.lang.String SERVICE_INTERFACE
Service Classname address type.- See Also:
- Constant Field Values
-
SERVICE_NAMESPACE
public static final java.lang.String SERVICE_NAMESPACE
ServiceQname address type.- See Also:
- Constant Field Values
-
SERVICE_LOCAL_PART
public static final java.lang.String SERVICE_LOCAL_PART
Service local part address type.- See Also:
- Constant Field Values
-
WSDL
public static final java.lang.String WSDL
Wsdl Location address type.- See Also:
- Constant Field Values
-
JAXRPCMAPPING
public static final java.lang.String JAXRPCMAPPING
Jaxrpcmapping address type.- See Also:
- Constant Field Values
-
PORTCOMPONENTLINK
public static final java.lang.String PORTCOMPONENTLINK
port-component-ref/port-component-link address type.- See Also:
- Constant Field Values
-
SERVICEENDPOINTINTERFACE
public static final java.lang.String SERVICEENDPOINTINTERFACE
port-component-ref/service-endpoint-interface address type.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServiceRef
public ServiceRef(java.lang.String refname, java.lang.String serviceInterface, java.lang.String[] serviceQname, java.lang.String wsdl, java.lang.String jaxrpcmapping)Creates a ServiceRef with the given parameters and no factory information.- Parameters:
refname- the reference nameserviceInterface- the service interface class nameserviceQname- the service QName (namespace and local part)wsdl- the WSDL locationjaxrpcmapping- the JAX-RPC mapping
-
ServiceRef
public ServiceRef(java.lang.String refname, java.lang.String serviceInterface, java.lang.String[] serviceQname, java.lang.String wsdl, java.lang.String jaxrpcmapping, java.lang.String factory, java.lang.String factoryLocation)Creates a ServiceRef with the given parameters and factory information.- Parameters:
refname- the reference name - unusedserviceInterface- the service interface class nameserviceQname- the service QName (namespace and local part)wsdl- the WSDL locationjaxrpcmapping- the JAX-RPC mappingfactory- the factory class namefactoryLocation- the factory location
-
-
Method Detail
-
getHandler
public HandlerRef getHandler()
Add and Get Handlers classes.- Returns:
- the handler
-
getHandlersSize
public int getHandlersSize()
Returns the number of handlers in the list.- Returns:
- the number of handlers
-
addHandler
public void addHandler(HandlerRef handler)
Adds a handler reference to the list.- Parameters:
handler- the handler reference to add
-
getDefaultFactoryClassName
protected java.lang.String getDefaultFactoryClassName()
Description copied from class:AbstractRefReturns the default factory class name.- Specified by:
getDefaultFactoryClassNamein classAbstractRef- Returns:
- the default factory class name
-
-