org.apache.openejb.server.webservices
Class WsService
java.lang.Object
org.apache.openejb.server.webservices.WsService
- All Implemented Interfaces:
- SelfManaging, ServerService, Service
public abstract class WsService
- extends Object
- implements ServerService, SelfManaging
|
Method Summary |
void |
afterApplicationCreated(AppInfo appInfo,
WebAppInfo webApp)
|
void |
afterApplicationCreated(AssemblerAfterApplicationCreated event)
|
void |
beforeApplicationDestroyed(AssemblerBeforeApplicationDestroyed event)
|
protected abstract HttpListener |
createEjbWsContainer(URL moduleBaseUrl,
PortData port,
BeanContext beanContext,
ServiceConfiguration configuration)
|
protected abstract HttpListener |
createPojoWsContainer(URL moduleBaseUrl,
PortData port,
String serviceId,
Class target,
Context context,
String contextRoot,
Map<String,Object> bindings,
ServiceConfiguration configuration)
|
protected abstract void |
destroyEjbWsContainer(String deploymentId)
|
protected abstract void |
destroyPojoWsContainer(String serviceId)
|
Map<String,List<WsService.EndpointInfo>> |
getAddressesByApplication()
|
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 |
logger
public static final Logger logger
WS_ADDRESS_FORMAT
public static final String WS_ADDRESS_FORMAT
- See Also:
- Constant Field Values
WS_FORCE_ADDRESS
public static final String WS_FORCE_ADDRESS
- See Also:
- Constant Field Values
WsService
public WsService()
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,
BeanContext beanContext,
ServiceConfiguration configuration)
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,
Map<String,Object> bindings,
ServiceConfiguration configuration)
throws Exception
- Throws:
Exception
destroyPojoWsContainer
protected abstract void destroyPojoWsContainer(String serviceId)
afterApplicationCreated
public void afterApplicationCreated(@Observes
AssemblerAfterApplicationCreated event)
afterApplicationCreated
public void afterApplicationCreated(AppInfo appInfo,
WebAppInfo webApp)
beforeApplicationDestroyed
public void beforeApplicationDestroyed(@Observes
AssemblerBeforeApplicationDestroyed event)
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
getAddressesByApplication
public Map<String,List<WsService.EndpointInfo>> getAddressesByApplication()
Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.