|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport org.springframework.ws.transport.support.SimpleWebServiceMessageReceiverObjectSupport org.springframework.ws.transport.support.AbstractStandaloneMessageReceiver
public abstract class AbstractStandaloneMessageReceiver
Abstract base class for standalone, server-side transport objects. Provides a basic, thread-safe implementation of
the Lifecycle
interface, and various template methods to be implemented by concrete sub classes.
Field Summary |
---|
Fields inherited from class org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport |
---|
logger |
Constructor Summary | |
---|---|
AbstractStandaloneMessageReceiver()
|
Method Summary | |
---|---|
void |
activate()
Initialize this server. |
void |
afterPropertiesSet()
Calls activate() when the BeanFactory initializes the receiver instance. |
void |
destroy()
Calls shutdown() when the BeanFactory destroys the receiver instance. |
boolean |
isActive()
Return whether this server is currently active, that is, whether it has been set up but not shut down yet. |
boolean |
isRunning()
Return whether this server is currently running, that is, whether it has been started and not stopped yet. |
protected abstract void |
onActivate()
Template method invoked when activate() is invoked. |
protected abstract void |
onShutdown()
Template method invoked when shutdown() is invoked. |
protected abstract void |
onStart()
Template method invoked when start() is invoked. |
protected abstract void |
onStop()
Template method invoked when stop() is invoked. |
void |
setAutoStartup(boolean autoStartup)
Set whether to automatically start the receiver after initialization. |
void |
shutdown()
Shut down this server. |
void |
start()
Start this server. |
void |
stop()
Stop this server. |
Methods inherited from class org.springframework.ws.transport.support.SimpleWebServiceMessageReceiverObjectSupport |
---|
getMessageReceiver, handleConnection, setMessageReceiver |
Methods inherited from class org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport |
---|
getMessageFactory, handleConnection, setMessageFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractStandaloneMessageReceiver()
Method Detail |
---|
public final boolean isActive()
public final boolean isRunning()
isRunning
in interface Lifecycle
public void setAutoStartup(boolean autoStartup)
true
; set this to false
to allow for manual startup.
public void afterPropertiesSet() throws Exception
activate()
when the BeanFactory initializes the receiver instance.
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class SimpleWebServiceMessageReceiverObjectSupport
Exception
public void destroy()
shutdown()
when the BeanFactory destroys the receiver instance.
destroy
in interface DisposableBean
public final void activate() throws Exception
autoStartup
hasn't been turned
off.
Exception
public final void start()
start
in interface Lifecycle
public final void stop()
stop
in interface Lifecycle
public final void shutdown()
protected abstract void onActivate() throws Exception
activate()
is invoked.
Exception
- in case of errorsprotected abstract void onStart()
start()
is invoked.
protected abstract void onStop()
stop()
is invoked.
protected abstract void onShutdown()
shutdown()
is invoked.
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |