|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.provision.server.AbstractSimpleServer
public abstract class AbstractSimpleServer
Abstract AbstractSimpleServer class.
| Nested Class Summary | |
|---|---|
static class |
AbstractSimpleServer.BannerExchange
|
static interface |
AbstractSimpleServer.Exchange
|
static interface |
AbstractSimpleServer.RequestMatcher
|
static class |
AbstractSimpleServer.SimpleServerExchange
|
| Constructor Summary | |
|---|---|
AbstractSimpleServer()
|
|
| Method Summary | |
|---|---|
protected void |
addRequestResponse(String request,
String response)
addRequestResponse |
protected boolean |
attemptConversation(BufferedReader in,
OutputStream out)
attemptConversation |
InetAddress |
getInetAddress()
getInetAddress |
int |
getLocalPort()
getLocalPort |
Runnable |
getRunnable()
getRunnable |
int |
getTimeout()
getTimeout |
void |
init()
init |
void |
onInit()
onInit |
protected AbstractSimpleServer.RequestMatcher |
regexpMatches(String regex)
regexpMatches |
protected void |
setExpectedBanner(String banner)
setExpectedBanner |
void |
setTimeout(int timeout)
setTimeout |
void |
startServer()
startServer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractSimpleServer()
| Method Detail |
|---|
public int getTimeout()
getTimeout
public void setTimeout(int timeout)
setTimeout
timeout - a int.public InetAddress getInetAddress()
getInetAddress
public int getLocalPort()
getLocalPort
public void init()
throws Exception
init
Exception - if any.public void onInit()
onInit
public void startServer()
throws Exception
startServer
Exception - if any.
public Runnable getRunnable()
throws Exception
getRunnable
Runnable object.
Exception - if any.
protected boolean attemptConversation(BufferedReader in,
OutputStream out)
throws IOException
attemptConversation
in - a BufferedReader object.out - a OutputStream object.
IOException - if any.protected void setExpectedBanner(String banner)
setExpectedBanner
banner - a String object.
protected void addRequestResponse(String request,
String response)
addRequestResponse
request - a String object.response - a String object.protected AbstractSimpleServer.RequestMatcher regexpMatches(String regex)
regexpMatches
regex - a String object.
AbstractSimpleServer.RequestMatcher object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||