Package jadex.extension.ws.publish
Class DefaultWebServicePublishService
- java.lang.Object
- 
- jadex.extension.ws.publish.DefaultWebServicePublishService
 
- 
- All Implemented Interfaces:
- IPublishService
 
 public class DefaultWebServicePublishService extends java.lang.Object implements IPublishService The default web service publish service. Publishes web services using the JDK Endpoint class.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalAccesscomponentThe component.protected java.util.Map<IServiceIdentifier,javax.xml.ws.Endpoint>endpointsThe published endpoints.- 
Fields inherited from interface jadex.bridge.service.types.publish.IPublishServiceDEFAULT_RSPUBLISH_COMPONENTS, PUBLISH_RS, PUBLISH_WS
 
- 
 - 
Constructor SummaryConstructors Constructor Description DefaultWebServicePublishService()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectcreateProxy(IService service, java.lang.ClassLoader classloader, java.lang.Class<?> type)Create a service proxy.protected java.lang.Class<?>getProxyClass(java.lang.Class<?> type, java.lang.ClassLoader classloader)Get the proxy class for a web service interface type.IFuture<java.lang.Boolean>isSupported(java.lang.String publishtype)Test if publishing a specific type is supported (e.g.IFuture<java.lang.Void>publishService(IServiceIdentifier serviceid, PublishInfo pi)Publish a service.IFuture<java.lang.Void>unpublishService(IServiceIdentifier sid)Unpublish a service.
 
- 
- 
- 
Field Detail- 
componentprotected IInternalAccess component The component.
 - 
endpointsprotected java.util.Map<IServiceIdentifier,javax.xml.ws.Endpoint> endpoints The published endpoints.
 
- 
 - 
Method Detail- 
isSupportedpublic IFuture<java.lang.Boolean> isSupported(java.lang.String publishtype) Test if publishing a specific type is supported (e.g. web service).- Specified by:
- isSupportedin interface- IPublishService
- Parameters:
- publishtype- The type to test.
- Returns:
- True, if can be published.
 
 - 
publishServicepublic IFuture<java.lang.Void> publishService(IServiceIdentifier serviceid, PublishInfo pi) Publish a service.- Specified by:
- publishServicein interface- IPublishService
- Parameters:
- cl- The classloader.
- service- The original service.
- pid- The publish id (e.g. url or name).
 
 - 
unpublishServicepublic IFuture<java.lang.Void> unpublishService(IServiceIdentifier sid) Unpublish a service.- Specified by:
- unpublishServicein interface- IPublishService
- Parameters:
- sid- The service identifier.
 
 - 
createProxyprotected java.lang.Object createProxy(IService service, java.lang.ClassLoader classloader, java.lang.Class<?> type) Create a service proxy.- Parameters:
- service- The Jadex service.
- classloader- The classloader.
- type- The web service interface type.
- Returns:
- The proxy object.
 
 - 
getProxyClassprotected java.lang.Class<?> getProxyClass(java.lang.Class<?> type, java.lang.ClassLoader classloader)Get the proxy class for a web service interface type. The method generates a new proxy class if called the first time for a specific service interface.- Parameters:
- type- The interface service type.
- classloader- The class loader.
- Returns:
- The (possibly newly generated) proxy class.
 
 
- 
 
-