org.apache.ws.commons.tcpmon.core.engine
Interface RequestResponseListener

All Known Implementing Classes:
AbstractRequestResponse, Dump, RequestResponse, RequestResponse

public interface RequestResponseListener

Listener receiving information about a given request-response exchange.


Field Summary
static int STATE_ACTIVE
           
static int STATE_DONE
           
static int STATE_ERROR
           
static int STATE_REQ
           
static int STATE_RESP
           
 
Method Summary
 OutputStream getRequestOutputStream()
          Get the output stream to which a copy of the request will be written.
 OutputStream getResponseOutputStream()
          Get the output stream to which a copy of the response will be written
 void onError(Throwable ex)
           
 void setElapsed(long elapsed)
           
 void setState(int state)
           
 void setTarget(String targetHost, int targetPort)
           
 

Field Detail

STATE_ACTIVE

static final int STATE_ACTIVE
See Also:
Constant Field Values

STATE_REQ

static final int STATE_REQ
See Also:
Constant Field Values

STATE_RESP

static final int STATE_RESP
See Also:
Constant Field Values

STATE_DONE

static final int STATE_DONE
See Also:
Constant Field Values

STATE_ERROR

static final int STATE_ERROR
See Also:
Constant Field Values
Method Detail

setTarget

void setTarget(String targetHost,
               int targetPort)

setState

void setState(int state)

setElapsed

void setElapsed(long elapsed)

getRequestOutputStream

OutputStream getRequestOutputStream()
Get the output stream to which a copy of the request will be written.

Returns:
an output stream or null if the implementation doesn't want to receive a copy of the request

getResponseOutputStream

OutputStream getResponseOutputStream()
Get the output stream to which a copy of the response will be written

Returns:
an output stream or null if the implementation doesn't want to receive a copy of the response

onError

void onError(Throwable ex)


Copyright © The Apache Software Foundation. All Rights Reserved.