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.
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
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.