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 Summary
Fields 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.IPublishService
DEFAULT_RSPUBLISH_COMPONENTS, PUBLISH_RS, PUBLISH_WS 
 - 
 
- 
Constructor Summary
Constructors Constructor Description DefaultWebServicePublishService() 
- 
Method Summary
All 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
- 
component
protected IInternalAccess component
The component. 
- 
endpoints
protected java.util.Map<IServiceIdentifier,javax.xml.ws.Endpoint> endpoints
The published endpoints. 
 - 
 
- 
Method Detail
- 
isSupported
public IFuture<java.lang.Boolean> isSupported(java.lang.String publishtype)
Test if publishing a specific type is supported (e.g. web service).- Specified by:
 isSupportedin interfaceIPublishService- Parameters:
 publishtype- The type to test.- Returns:
 - True, if can be published.
 
 
- 
publishService
public IFuture<java.lang.Void> publishService(IServiceIdentifier serviceid, PublishInfo pi)
Publish a service.- Specified by:
 publishServicein interfaceIPublishService- Parameters:
 cl- The classloader.service- The original service.pid- The publish id (e.g. url or name).
 
- 
unpublishService
public IFuture<java.lang.Void> unpublishService(IServiceIdentifier sid)
Unpublish a service.- Specified by:
 unpublishServicein interfaceIPublishService- Parameters:
 sid- The service identifier.
 
- 
createProxy
protected 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.
 
 
- 
getProxyClass
protected 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.
 
 
 - 
 
 -