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 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(String response)
matchResponseByStringboolean
processResponse(BufferedReader in)
processResponseboolean
sendRequest(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(String response)
Description copied from interface:Exchange
matchResponseByString
- Specified by:
matchResponseByString
in interfaceExchange
- Parameters:
response
- aString
object.- Returns:
- a boolean.
-
processResponse
public boolean processResponse(BufferedReader in) throws IOException
Description copied from interface:Exchange
processResponse
- Specified by:
processResponse
in interfaceExchange
- Parameters:
in
- aBufferedReader
object.- Returns:
- a boolean.
- Throws:
IOException
- if any.
-
sendRequest
public boolean sendRequest(OutputStream out) throws IOException
Description copied from interface:Exchange
sendRequest
- Specified by:
sendRequest
in interfaceExchange
- Parameters:
out
- aOutputStream
object.- Returns:
- a boolean.
- Throws:
IOException
- if any.
-
setResponseHandler
public void setResponseHandler(ResponseHandler responseHandler)
-
getResponseHandler
public ResponseHandler getResponseHandler()
-
setRequestHandler
public void setRequestHandler(RequestHandler requestHandler)
-
getRequestHandler
public RequestHandler getRequestHandler()
-
-