org.apache.openejb.server.webservices
Class WsService

java.lang.Object
  extended by org.apache.openejb.server.webservices.WsService
All Implemented Interfaces:
DeploymentListener, SelfManaging, ServerService, Service
Direct Known Subclasses:
Axis2Service, AxisService, CxfService

public abstract class WsService
extends Object
implements ServerService, SelfManaging, DeploymentListener


Field Summary
static Logger logger
           
static String WS_ADDRESS_FORMAT
           
 
Constructor Summary
WsService()
           
 
Method Summary
 void afterApplicationCreated(AppInfo appInfo)
           
 void afterApplicationCreated(WebAppInfo webApp)
           
 void beforeApplicationDestroyed(AppInfo appInfo)
           
protected abstract  HttpListener createEjbWsContainer(URL moduleBaseUrl, PortData port, DeploymentInfo deploymentInfo)
           
protected abstract  HttpListener createPojoWsContainer(URL moduleBaseUrl, PortData port, String serviceId, Class target, Context context, String contextRoot)
           
protected abstract  void destroyEjbWsContainer(String deploymentId)
           
protected abstract  void destroyPojoWsContainer(String serviceId)
           
 String getAuthMethod()
           
static String getEjbType(int type)
           
 String getIP()
           
 int getPort()
           
 String getRealmName()
           
 String getTransportGuarantee()
           
 String getVirtualHost()
           
 StringTemplate getWsAddressTemplate()
           
 void init(Properties props)
           
 void service(InputStream in, OutputStream out)
           
 void service(Socket socket)
           
 void setAuthMethod(String authMethod)
           
 void setRealmName(String realmName)
           
 void setTransportGuarantee(String transportGuarantee)
           
 void setVirtualHost(String virtualHost)
           
 void setWsAddressTemplate(StringTemplate wsAddressTemplate)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.openejb.server.ServerService
getName
 

Field Detail

logger

public static final Logger logger

WS_ADDRESS_FORMAT

public static final String WS_ADDRESS_FORMAT
See Also:
Constant Field Values
Constructor Detail

WsService

public WsService()
Method Detail

getWsAddressTemplate

public StringTemplate getWsAddressTemplate()

setWsAddressTemplate

public void setWsAddressTemplate(StringTemplate wsAddressTemplate)

getRealmName

public String getRealmName()

setRealmName

public void setRealmName(String realmName)

getTransportGuarantee

public String getTransportGuarantee()

setTransportGuarantee

public void setTransportGuarantee(String transportGuarantee)

getAuthMethod

public String getAuthMethod()

setAuthMethod

public void setAuthMethod(String authMethod)

getVirtualHost

public String getVirtualHost()

setVirtualHost

public void setVirtualHost(String virtualHost)

getIP

public String getIP()
Specified by:
getIP in interface ServerService

getPort

public int getPort()
Specified by:
getPort in interface ServerService

init

public void init(Properties props)
          throws Exception
Specified by:
init in interface Service
Throws:
Exception

start

public void start()
           throws ServiceException
Specified by:
start in interface ServerService
Throws:
ServiceException

stop

public void stop()
          throws ServiceException
Specified by:
stop in interface ServerService
Throws:
ServiceException

createEjbWsContainer

protected abstract HttpListener createEjbWsContainer(URL moduleBaseUrl,
                                                     PortData port,
                                                     DeploymentInfo deploymentInfo)
                                              throws Exception
Throws:
Exception

destroyEjbWsContainer

protected abstract void destroyEjbWsContainer(String deploymentId)

createPojoWsContainer

protected abstract HttpListener createPojoWsContainer(URL moduleBaseUrl,
                                                      PortData port,
                                                      String serviceId,
                                                      Class target,
                                                      Context context,
                                                      String contextRoot)
                                               throws Exception
Throws:
Exception

destroyPojoWsContainer

protected abstract void destroyPojoWsContainer(String serviceId)

afterApplicationCreated

public void afterApplicationCreated(AppInfo appInfo)
Specified by:
afterApplicationCreated in interface DeploymentListener

afterApplicationCreated

public void afterApplicationCreated(WebAppInfo webApp)

beforeApplicationDestroyed

public void beforeApplicationDestroyed(AppInfo appInfo)
Specified by:
beforeApplicationDestroyed in interface DeploymentListener

getEjbType

public static String getEjbType(int type)

service

public void service(InputStream in,
                    OutputStream out)
             throws ServiceException,
                    IOException
Specified by:
service in interface ServerService
Throws:
ServiceException
IOException

service

public void service(Socket socket)
             throws ServiceException,
                    IOException
Specified by:
service in interface ServerService
Throws:
ServiceException
IOException


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.