|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.systinet.wasp.wsrm.sequence.SequenceRegistry
Contains useful methods for sequence management. These methods are independent of WS-RM implementation and version.
Field Summary | |
protected static org.systinet.wasp.wsrm.sequence.ProcessingRegistry |
processingRegistry
|
Constructor Summary | |
SequenceRegistry()
|
Method Summary | |
static void |
addSequenceListener(SequenceListener listener)
Installs sequence listener monitoring changes on sequences. |
static void |
addSequenceListener(SequenceListener listener,
Processing processing)
Installs the listener monitoring changes of
OneWaySequence.State of all sequences related to given processing . |
static InputSequence |
getActiveInputSequence()
Returns an input sequence active in current processing or null if there
is no such sequence. |
static InputSequence |
getActiveInputSequence(CallContext callContext)
Returns an input sequence active in the given processing or null if there
is no such sequence. |
static OutputSequence |
getActiveOutputSequence()
Returns an output sequence active in current processing or null if there
is no such sequence. |
static OutputSequence |
getActiveOutputSequence(CallContext callContext)
Returns an output sequence active in the given processing or null if there
is no such sequence. |
static void |
removeSequenceListener(SequenceListener listener)
Removes the sequence listener registered by calling addSequenceListener(SequenceListener)
method. |
static void |
removeSequenceListener(SequenceListener listener,
Processing processing)
Removes the SequenceListener installed by
addSequenceListener(SequenceListener, Processing) method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final org.systinet.wasp.wsrm.sequence.ProcessingRegistry processingRegistry
Constructor Detail |
public SequenceRegistry()
Method Detail |
public static void addSequenceListener(SequenceListener listener, Processing processing)
listener
monitoring changes of
OneWaySequence.State
of all sequences related to given processing
.
There should be used a ServiceEndpointListener
on the service side
to add a sequence listener for all service endpoint sequences:
public class MyService implements ServiceEndpointListener { private SequenceListener listener = new MySequenceListener(); public void onPublish(ServiceEndpoint serviceEndpoint) { SequenceRegistry.addSequenceListener(this.listener, serviceEndpoint); } public void onUnpublish(ServiceEndpoint serviceEndpoint) { SequenceRegistry.removeSequenceListener(this.listener, serviceEndpoint); } public String hello(String msg) { ... } ... }
public static void removeSequenceListener(SequenceListener listener, Processing processing)
SequenceListener
installed by
addSequenceListener(SequenceListener, Processing)
method.
addSequenceListener(SequenceListener, org.systinet.wasp.webservice.Processing)
public static void addSequenceListener(SequenceListener listener)
addSequenceListener(SequenceListener, org.systinet.wasp.webservice.Processing)
public static void removeSequenceListener(SequenceListener listener)
addSequenceListener(SequenceListener)
method.
removeSequenceListener(SequenceListener, org.systinet.wasp.webservice.Processing)
public static OutputSequence getActiveOutputSequence() throws java.lang.IllegalStateException
null
if there
is no such sequence.
java.lang.IllegalStateException
public static OutputSequence getActiveOutputSequence(CallContext callContext) throws java.lang.IllegalStateException
null
if there
is no such sequence.
callContext
- CallContext of the given processing.
java.lang.IllegalStateException
getActiveOutputSequence()
public static InputSequence getActiveInputSequence() throws java.lang.IllegalStateException
null
if there
is no such sequence. Use this method in service implementation to obtain the input sequence
containing current request or in AsyncCallback.onResponse(org.systinet.wasp.async.AsyncConversation)
to obtain the input sequence containing current response.
java.lang.IllegalStateException
public static InputSequence getActiveInputSequence(CallContext callContext) throws java.lang.IllegalStateException
null
if there
is no such sequence.
callContext
- CallContext of the given processing.
java.lang.IllegalStateException
getActiveInputSequence()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |