|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Registry
).
Represents the service manager in the WSO2 SOA Enablement Server runtime. It is used by the administrator tools to display and manage service instances and endpoints, and by the deployment mechanism or anything else to register and remove service endpoints and service instances.
Method Summary | |
WSContext |
addService(java.lang.String path,
java.lang.Class serviceClass)
Deprecated. Registers new service endpoint and service instance using default configuration and activate it. |
WSContext |
addService(java.lang.String path,
java.lang.Object svc)
Deprecated. Registers new service endpoint and service instance using default configuration and activate it. |
WSContext |
addServiceEndpoint(WebServiceContext svcInstance,
java.lang.String path)
Deprecated. Registers new service endpoint using default configuration and activate it. |
WSContext |
addServiceEndpoint(WebServiceContext svcInstance,
java.lang.String path,
Definition wsdl,
QName serviceQName)
Deprecated. Registers new service endpoint using default configuration and activate it. |
WSContext |
addServiceEndpoint(WebServiceContext svcInstance,
java.lang.String path,
java.lang.String wsdlURI,
QName serviceQName)
Deprecated. Registers new service endpoint using default configuration and activate it. |
WebServiceContext |
addServiceInstance(java.lang.Class serviceClass)
Deprecated. Registers new service instance. |
WebServiceContext |
addServiceInstance(java.lang.Object serviceObject)
Deprecated. Registers new service instance. |
WSContext |
getServiceEndpoint(java.lang.String path)
Deprecated. Returns context of the particular service endpoint specified by its URI. |
WSContext |
getServiceEndpoint(java.lang.String path,
TransportMethod transportMethod)
Deprecated. Returns a context of the particular service endpoint specified by its URI and particular HTTP method. |
WSContext[] |
getServiceEndpoints(java.lang.String name)
Deprecated. Gets the service endpoints (represented by their respective WSContext instances) using a service instance name represented by the parameter name . |
WSContext[] |
getServiceEndpoints(WebServiceContext svc)
Deprecated. Gets the service endpoints (represented by their respective WSContext instances) using a service instance represented by the parameter svc . |
java.lang.String[] |
getServiceEndpointsPaths(java.lang.String name)
Deprecated. Gets the service endpoints (represented by their paths) using a service instance name represented by the parameter name . |
java.lang.String[] |
getServiceEndpointsPaths(WebServiceContext svc)
Deprecated. Gets the service endpoints (represented by their paths) using a service instance represented by the parameter svc . |
WebServiceContext |
getServiceInstance(java.lang.String serviceName)
Deprecated. Returns context of the particular service instance specified by its name. |
java.lang.String[] |
getServiceInstanceNames()
Deprecated. Returns set of known service instances. |
void |
removeServiceEndpoint(java.lang.String servicePath)
Deprecated. Removes service endpoint. |
void |
removeServiceEndpoint(WSContext serviceContext)
Deprecated. Removes service endpoint. |
void |
removeServiceInstance(java.lang.String name)
Deprecated. Unregisters service instance along with all services using it. |
void |
removeServiceInstance(WebServiceContext svc)
Deprecated. Unregisters a service instance along with all srevices using it. |
Method Detail |
public java.lang.String[] getServiceInstanceNames()
public WebServiceContext addServiceInstance(java.lang.Class serviceClass)
serviceClass
- the Java class that shall be the service.
public WebServiceContext addServiceInstance(java.lang.Object serviceObject)
serviceObject
- the Java object that shall be the service.
public void removeServiceInstance(java.lang.String name) throws ServiceInstanceNotFoundException
name
- the name of the service instance to unregister
ServiceInstanceNotFoundException
- when no such service instance existspublic void removeServiceInstance(WebServiceContext svc)
svc
- the WebServiceContext that represents the service instancepublic WSContext addServiceEndpoint(WebServiceContext svcInstance, java.lang.String path) throws InvalidEndpointPathException
svcInstance
- the WebServiceContext representing the service
instance for which the new service is being createdpath
- the path on which the service endpoint is to be located in the
server, usually something like "/myService/" (note the leading slash - it
has to be used in all endpoint paths except e-mail adresses)
InvalidEndpointPathException
- when the service URI already exists
or is not formatted properlypublic WSContext addServiceEndpoint(WebServiceContext svcInstance, java.lang.String path, java.lang.String wsdlURI, QName serviceQName) throws InvalidEndpointPathException, WSDLException
svcInstance
- the WebServiceContext representing the service
instance for which the new service is being createdpath
- the path on which the service endpoint is to be located in the
server, usually something like "/myService/" (note the leading slash - it
has to be used in all endpoint paths except e-mail adresses)wsdlURI
- URI of your WSDLserviceQName
- QName of service chosen from WSDL, if null
then the first service is chosen. Something like
new QName("http://systinet.com/test/", "JavaService")
.
InvalidEndpointPathException
- when the service URI already exists
or is not formatted properly
WSDLException
public WSContext addServiceEndpoint(WebServiceContext svcInstance, java.lang.String path, Definition wsdl, QName serviceQName) throws InvalidEndpointPathException
svcInstance
- the WebServiceContext representing the service
instance for which the new service is being createdpath
- the path on which the service endpoint is to be located in the
server, usually something like "/myService/" (note the leading slash - it
has to be used in all endpoint paths except e-mail adresses)wsdl
- Definition representing your WSDLserviceQName
- QName of service chosen from WSDL, if null
then the first service is chosen. Something like
new QName("http://systinet.com/test/", "JavaService")
.
InvalidEndpointPathException
- when the service URI already exists
or is not formatted properlypublic void removeServiceEndpoint(WSContext serviceContext)
serviceContext
- service endpoint's WSContext instancepublic void removeServiceEndpoint(java.lang.String servicePath) throws InvalidEndpointPathException
servicePath
- path of the Service Endpoint
InvalidEndpointPathException
- when the service URI does not existpublic WSContext addService(java.lang.String path, java.lang.Class serviceClass) throws InvalidEndpointPathException
path
- the path on which the service endpoint is to be located in the
server, usually something like "/myService/" (note the leading slash - it
has to be used in all endpoint paths except e-mail adresses)serviceClass
- the class whose instance shall represent the new service instance
InvalidEndpointPathException
- when the service endpoint path
already exists or is not formatted properlypublic WSContext addService(java.lang.String path, java.lang.Object svc) throws InvalidEndpointPathException
path
- the path on which the service is to be located in the
server, usually something like "/myService/" (note the leading slash - it
has to be used in all endpoint paths except e-mail adresses)svc
- the object that represents the service instance
InvalidEndpointPathException
- when the service URI already exists
or is not formatted properlypublic WebServiceContext getServiceInstance(java.lang.String serviceName) throws ServiceInstanceNotFoundException
serviceName
- name of the service instance
ServiceInstanceNotFoundException
- when no such service
instance existspublic WSContext getServiceEndpoint(java.lang.String path) throws InvalidEndpointPathException
path
- path of the service endpoint
InvalidEndpointPathException
- when no such service endpoint
path existspublic WSContext getServiceEndpoint(java.lang.String path, TransportMethod transportMethod) throws InvalidEndpointPathException
path
- path of the service endpointtransportMethod
- TransportMethod.GET or TransportMethod.POST
InvalidEndpointPathException
- when no such service endpoint
path existspublic WSContext[] getServiceEndpoints(WebServiceContext svc)
svc
.
svc
- the service instance's WebServiceContext
public java.lang.String[] getServiceEndpointsPaths(WebServiceContext svc)
svc
.
svc
- the service instance's WebServiceContext
public WSContext[] getServiceEndpoints(java.lang.String name) throws ServiceInstanceNotFoundException
name
.
name
- the name identifying the service instance
ServiceInstanceNotFoundException
- when no such service existspublic java.lang.String[] getServiceEndpointsPaths(java.lang.String name) throws ServiceInstanceNotFoundException
name
.
name
- name identifying the service instance
ServiceInstanceNotFoundException
- when no such service exists
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |