com.sun.xml.ws.api.pipe
Class NextAction

java.lang.Object
  extended by com.sun.xml.ws.api.pipe.NextAction

public final class NextAction
extends Object

Indicates what shall happen after Tube.processRequest(Packet) or Tube.processResponse(Packet) returns.

To allow reuse of this object, this class is mutable.


Field Summary
(package private) static int INVOKE
           
(package private) static int INVOKE_AND_FORGET
           
(package private)  int kind
           
(package private)  Tube next
           
(package private)  Packet packet
           
(package private) static int RETURN
           
(package private) static int SUSPEND
           
(package private) static int THROW
           
(package private)  Throwable throwable
          Really either RuntimeException or Error.
 
Constructor Summary
NextAction()
           
 
Method Summary
 String getKindString()
          Returns kind in a human readable string, to assist debugging.
 void invoke(Tube next, Packet p)
          Indicates that the next action should be to invoke the next tube's Tube.processRequest(Packet), then later invoke the current tube's Tube.processResponse(Packet) with the response packet.
 void invokeAndForget(Tube next, Packet p)
          Indicates that the next action should be to invoke the next tube's Tube.processRequest(Packet), but the current tube doesn't want to receive the response packet to its Tube.processResponse(Packet).
 void returnWith(Packet response)
          Indicates that the next action is to flip the processing direction and starts response processing.
 void suspend()
          Indicates that the fiber should be suspended.
 void throwException(Throwable t)
          Indicates that the next action is to flip the processing direction and starts exception processing.
 String toString()
          Dumps the contents to assist debugging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

kind

int kind

next

Tube next

packet

Packet packet

throwable

Throwable throwable
Really either RuntimeException or Error.


INVOKE

static final int INVOKE
See Also:
Constant Field Values

INVOKE_AND_FORGET

static final int INVOKE_AND_FORGET
See Also:
Constant Field Values

RETURN

static final int RETURN
See Also:
Constant Field Values

THROW

static final int THROW
See Also:
Constant Field Values

SUSPEND

static final int SUSPEND
See Also:
Constant Field Values
Constructor Detail

NextAction

public NextAction()
Method Detail

invoke

public void invoke(Tube next,
                   Packet p)
Indicates that the next action should be to invoke the next tube's Tube.processRequest(Packet), then later invoke the current tube's Tube.processResponse(Packet) with the response packet.


invokeAndForget

public void invokeAndForget(Tube next,
                            Packet p)
Indicates that the next action should be to invoke the next tube's Tube.processRequest(Packet), but the current tube doesn't want to receive the response packet to its Tube.processResponse(Packet).


returnWith

public void returnWith(Packet response)
Indicates that the next action is to flip the processing direction and starts response processing.


throwException

public void throwException(Throwable t)
Indicates that the next action is to flip the processing direction and starts exception processing.

Parameters:
t - Either RuntimeException or Error, but defined to take Throwable because Tube.processException(Throwable) takes Throwable.

suspend

public void suspend()
Indicates that the fiber should be suspended. Once resumed, return the response processing.


toString

public String toString()
Dumps the contents to assist debugging.

Overrides:
toString in class Object

getKindString

public String getKindString()
Returns kind in a human readable string, to assist debugging.