Class SimpleConversationEndPoint.SimpleExchange
- java.lang.Object
-
- org.opennms.netmgt.provision.server.exchange.SimpleConversationEndPoint.SimpleExchange
-
- All Implemented Interfaces:
Exchange
- Enclosing class:
- SimpleConversationEndPoint
public static class SimpleConversationEndPoint.SimpleExchange extends java.lang.Object implements Exchange
-
-
Constructor Summary
Constructors Constructor Description SimpleExchange(ResponseHandler responseHandler, RequestHandler requestHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestHandler
getRequestHandler()
ResponseHandler
getResponseHandler()
boolean
matchResponseByString(java.lang.String response)
matchResponseByStringboolean
processResponse(java.io.BufferedReader in)
processResponseboolean
sendRequest(java.io.OutputStream out)
sendRequestvoid
setRequestHandler(RequestHandler requestHandler)
void
setResponseHandler(ResponseHandler responseHandler)
-
-
-
Constructor Detail
-
SimpleExchange
public SimpleExchange(ResponseHandler responseHandler, RequestHandler requestHandler)
-
-
Method Detail
-
matchResponseByString
public boolean matchResponseByString(java.lang.String response)
Description copied from interface:Exchange
matchResponseByString
- Specified by:
matchResponseByString
in interfaceExchange
- Parameters:
response
- aString
object.- Returns:
- a boolean.
-
processResponse
public boolean processResponse(java.io.BufferedReader in) throws java.io.IOException
Description copied from interface:Exchange
processResponse
- Specified by:
processResponse
in interfaceExchange
- Parameters:
in
- aBufferedReader
object.- Returns:
- a boolean.
- Throws:
java.io.IOException
- if any.
-
sendRequest
public boolean sendRequest(java.io.OutputStream out) throws java.io.IOException
Description copied from interface:Exchange
sendRequest
- Specified by:
sendRequest
in interfaceExchange
- Parameters:
out
- aOutputStream
object.- Returns:
- a boolean.
- Throws:
java.io.IOException
- if any.
-
setResponseHandler
public void setResponseHandler(ResponseHandler responseHandler)
-
getResponseHandler
public ResponseHandler getResponseHandler()
-
setRequestHandler
public void setRequestHandler(RequestHandler requestHandler)
-
getRequestHandler
public RequestHandler getRequestHandler()
-
-