Class SimpleUDPServer.SimpleServerExchange
- java.lang.Object
-
- org.opennms.netmgt.provision.server.SimpleUDPServer.SimpleServerExchange
-
- All Implemented Interfaces:
SimpleUDPServer.Exchange
- Enclosing class:
- SimpleUDPServer
public static class SimpleUDPServer.SimpleServerExchange extends Object implements SimpleUDPServer.Exchange
-
-
Constructor Summary
Constructors Constructor Description SimpleServerExchange(SimpleUDPServer.RequestMatcher requestMatcher, byte[] response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InetAddress
getResponseAddress()
int
getResponsePort()
boolean
processRequest(DatagramSocket socket)
boolean
sendReply(DatagramSocket socket)
void
setResponseAddress(InetAddress responseAddress)
void
setResponsePort(int responsePort)
-
-
-
Constructor Detail
-
SimpleServerExchange
public SimpleServerExchange(SimpleUDPServer.RequestMatcher requestMatcher, byte[] response)
-
-
Method Detail
-
processRequest
public boolean processRequest(DatagramSocket socket) throws IOException
- Specified by:
processRequest
in interfaceSimpleUDPServer.Exchange
- Throws:
IOException
-
sendReply
public boolean sendReply(DatagramSocket socket) throws IOException
- Specified by:
sendReply
in interfaceSimpleUDPServer.Exchange
- Throws:
IOException
-
setResponsePort
public void setResponsePort(int responsePort)
-
getResponsePort
public int getResponsePort()
-
setResponseAddress
public void setResponseAddress(InetAddress responseAddress)
-
getResponseAddress
public InetAddress getResponseAddress()
-
-