public abstract class WsService extends java.lang.Object implements ServerService, SelfManaging
Modifier and Type | Class and Description |
---|---|
static class |
WsService.EndpointInfo |
Modifier and Type | Field and Description |
---|---|
static Logger |
LOGGER |
static java.lang.String |
WS_ADDRESS_FORMAT |
static java.lang.String |
WS_FORCE_ADDRESS |
Constructor and Description |
---|
WsService() |
Modifier and Type | Method and Description |
---|---|
void |
afterApplicationCreated(AppInfo appInfo,
WebAppInfo webApp) |
protected abstract HttpListener |
createEjbWsContainer(java.net.URL moduleBaseUrl,
PortData port,
BeanContext beanContext,
ServiceConfiguration configuration) |
protected abstract HttpListener |
createPojoWsContainer(java.lang.ClassLoader loader,
java.net.URL moduleBaseUrl,
PortData port,
java.lang.String serviceId,
java.lang.Class target,
javax.naming.Context context,
java.lang.String contextRoot,
java.util.Map<java.lang.String,java.lang.Object> bindings,
ServiceConfiguration configuration) |
void |
deploy(AssemblerAfterApplicationCreated event) |
protected abstract void |
destroyEjbWsContainer(java.lang.String deploymentId) |
protected abstract void |
destroyPojoWsContainer(java.lang.String serviceId) |
java.util.Map<java.lang.String,java.util.List<WsService.EndpointInfo>> |
getAddressesByApplication() |
java.lang.String |
getAuthMethod() |
static java.lang.String |
getEjbType(int type) |
java.lang.String |
getIP() |
int |
getPort() |
java.lang.String |
getRealmName() |
java.lang.String |
getTransportGuarantee() |
java.lang.String |
getVirtualHost() |
StringTemplate |
getWsAddressTemplate() |
void |
init(java.util.Properties props) |
void |
newEjbToDeploy(NewEjbAvailableAfterApplicationCreated event) |
void |
service(java.io.InputStream in,
java.io.OutputStream out) |
void |
service(java.net.Socket socket) |
void |
setAuthMethod(java.lang.String authMethod) |
void |
setRealmName(java.lang.String realmName) |
void |
setTransportGuarantee(java.lang.String transportGuarantee) |
void |
setVirtualHost(java.lang.String virtualHost) |
void |
setWsAddressTemplate(StringTemplate wsAddressTemplate) |
protected void |
setWsdl(HttpListener listener,
java.lang.String wsdl) |
void |
start() |
void |
stop() |
void |
undeploy(AssemblerBeforeApplicationDestroyed event) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public static final Logger LOGGER
public static final java.lang.String WS_ADDRESS_FORMAT
public static final java.lang.String WS_FORCE_ADDRESS
public StringTemplate getWsAddressTemplate()
public void setWsAddressTemplate(StringTemplate wsAddressTemplate)
public java.lang.String getRealmName()
public void setRealmName(java.lang.String realmName)
public java.lang.String getTransportGuarantee()
public void setTransportGuarantee(java.lang.String transportGuarantee)
public java.lang.String getAuthMethod()
public void setAuthMethod(java.lang.String authMethod)
public java.lang.String getVirtualHost()
public void setVirtualHost(java.lang.String virtualHost)
public java.lang.String getIP()
getIP
in interface ServerService
public int getPort()
getPort
in interface ServerService
public void init(java.util.Properties props) throws java.lang.Exception
public void start() throws ServiceException
start
in interface ServerService
ServiceException
public void stop() throws ServiceException
stop
in interface ServerService
ServiceException
protected abstract HttpListener createEjbWsContainer(java.net.URL moduleBaseUrl, PortData port, BeanContext beanContext, ServiceConfiguration configuration) throws java.lang.Exception
java.lang.Exception
protected abstract void destroyEjbWsContainer(java.lang.String deploymentId)
protected abstract HttpListener createPojoWsContainer(java.lang.ClassLoader loader, java.net.URL moduleBaseUrl, PortData port, java.lang.String serviceId, java.lang.Class target, javax.naming.Context context, java.lang.String contextRoot, java.util.Map<java.lang.String,java.lang.Object> bindings, ServiceConfiguration configuration) throws java.lang.Exception
java.lang.Exception
protected abstract void destroyPojoWsContainer(java.lang.String serviceId)
public void newEjbToDeploy(@Observes NewEjbAvailableAfterApplicationCreated event)
public void deploy(@Observes AssemblerAfterApplicationCreated event)
protected void setWsdl(HttpListener listener, java.lang.String wsdl)
public void afterApplicationCreated(AppInfo appInfo, WebAppInfo webApp)
public void undeploy(@Observes AssemblerBeforeApplicationDestroyed event)
public static java.lang.String getEjbType(int type)
public void service(java.io.InputStream in, java.io.OutputStream out) throws ServiceException, java.io.IOException
service
in interface ServerService
ServiceException
java.io.IOException
public void service(java.net.Socket socket) throws ServiceException, java.io.IOException
service
in interface ServerService
ServiceException
java.io.IOException
public java.util.Map<java.lang.String,java.util.List<WsService.EndpointInfo>> getAddressesByApplication()