public class ServiceImpl extends Object implements ServiceExt, Serializable, Externalizable
Constructor and Description |
---|
ServiceImpl() |
ServiceImpl(QName serviceName)
Construct a Service without WSDL meta data
|
ServiceImpl(QName serviceName,
URL wsdlURL,
JavaWsdlMapping mappingURL,
org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedServiceRefMetaData usrMetaData)
Construct a Service that has access to some WSDL meta data
|
ServiceImpl(QName serviceName,
URL wsdlURL,
URL mappingURL,
URL securityURL)
Construct a Service that has access to some WSDL meta data
|
Modifier and Type | Method and Description |
---|---|
Call |
createCall()
Creates a Call object not associated with specific operation or target
service endpoint.
|
Call |
createCall(QName portName)
Creates a Call instance.
|
Call |
createCall(QName portName,
QName opName)
Creates a Call instance.
|
Call |
createCall(QName portName,
String operationName)
Creates a Call instance.
|
Call[] |
getCalls(QName portName)
Gets an array of preconfigured Call objects for invoking operations on
the specified port.
|
HandlerRegistry |
getDynamicHandlerRegistry()
Get a HandlerRegistry that can be used to dynamically change the client
side handler chain associated with a given endpoint.
|
HandlerChain |
getHandlerChain(QName portName)
Get the handler chain for the given endpoint name, maybe null.
|
HandlerRegistry |
getHandlerRegistry()
J2EE components should not use the getHandlerRegistry() method.
|
Remote |
getPort(Class seiClass)
The getPort method returns either an instance of a generated stub
implementation class or a dynamic proxy.
|
Remote |
getPort(QName portName,
Class seiClass)
The getPort method returns either an instance of a generated stub
implementation class or a dynamic proxy.
|
Iterator |
getPorts()
Returns an Iterator for the list of QNames of service endpoints grouped
by this service
|
ServiceMetaData |
getServiceMetaData() |
QName |
getServiceName()
Gets the name of this service.
|
TypeMappingRegistry |
getTypeMappingRegistry()
J2EE components should not use the getTypeMappingRegistry() method.
|
URL |
getWSDLDocumentLocation()
Gets the location of the WSDL document for this Service.
|
void |
readExternal(ObjectInput in) |
void |
registerHandlerChain(QName portName,
List infos,
Set roles)
Register a handler chain for the given endpoint name
|
void |
setupHandlerChain(EndpointMetaData epMetaData) |
void |
writeExternal(ObjectOutput out) |
public ServiceImpl()
public ServiceImpl(QName serviceName)
public ServiceImpl(QName serviceName, URL wsdlURL, URL mappingURL, URL securityURL)
public ServiceImpl(QName serviceName, URL wsdlURL, JavaWsdlMapping mappingURL, org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedServiceRefMetaData usrMetaData)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public ServiceMetaData getServiceMetaData()
public URL getWSDLDocumentLocation()
getWSDLDocumentLocation
in interface Service
public QName getServiceName()
getServiceName
in interface Service
public Call createCall(QName portName) throws ServiceException
createCall
in interface Service
portName
- Qualified name for the target service endpointServiceException
- If any error in the creation of the Call objectpublic Call createCall(QName portName, String operationName) throws ServiceException
createCall
in interface Service
portName
- Qualified name for the target service endpointoperationName
- Name of the operation for which this Call object is to be
created.ServiceException
- If any error in the creation of the Call objectpublic Call createCall(QName portName, QName opName) throws ServiceException
createCall
in interface Service
portName
- Qualified name for the target service endpointopName
- Qualified name of the operation for which this Call object is
to be created.ServiceException
- If any error in the creation of the Call objectpublic Call createCall() throws ServiceException
createCall
in interface Service
ServiceException
- If any error in the creation of the Call objectpublic Call[] getCalls(QName portName) throws ServiceException
getCalls
in interface Service
portName
- Qualified name for the target service endpointServiceException
- If this Service class does not have access to the required
WSDL metadata or if an illegal endpointName is specified.public HandlerRegistry getHandlerRegistry()
getHandlerRegistry
in interface Service
public HandlerRegistry getDynamicHandlerRegistry()
getDynamicHandlerRegistry
in interface ServiceExt
public TypeMappingRegistry getTypeMappingRegistry()
getTypeMappingRegistry
in interface Service
public Iterator getPorts() throws ServiceException
getPorts
in interface Service
ServiceException
- If this Service class does not have access to the required
WSDL metadatapublic Remote getPort(Class seiClass) throws ServiceException
getPort
in interface Service
ServiceException
public Remote getPort(QName portName, Class seiClass) throws ServiceException
getPort
in interface Service
portName
- Qualified name of the service endpoint in the WSDL service descrseiClass
- Service endpoint interface supported by the dynamic proxy or stub instanceServiceException
- This exception is thrown in the following cases:
public HandlerChain getHandlerChain(QName portName)
public void registerHandlerChain(QName portName, List infos, Set roles)
public void setupHandlerChain(EndpointMetaData epMetaData)
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.