Class AsyncSimpleServer
- java.lang.Object
-
- org.opennms.netmgt.provision.server.AsyncSimpleServer
-
public class AsyncSimpleServer extends java.lang.Object
AsyncSimpleServer class.
- Version:
- $Id: $
- Author:
- thedesloge
-
-
Constructor Summary
Constructors Constructor Description AsyncSimpleServer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRequestHandler(java.lang.String request, java.lang.String response)
addRequestHandlerint
getBufferSize()
getBufferSizeint
getIdleTime()
getIdleTimeint
getPort()
getPortorg.apache.mina.core.service.IoHandler
getServerHandler()
getServerHandlervoid
init()
initprotected void
onInit()
onInitvoid
setBanner(java.lang.String banner)
setBannervoid
setBufferSize(int bufferSize)
setBufferSizevoid
setExpectedClose(java.lang.String closeRequest)
setExpectedClosevoid
setExpectedClose(java.lang.String closeRequest, java.lang.String closeResponse)
setExpectedClosevoid
setIdleTime(int idleTime)
setIdleTimevoid
setPort(int port)
setPortvoid
setServerHandler(org.apache.mina.core.service.IoHandler handler)
setServerHandlervoid
startServer()
startServervoid
stopServer()
stopServer
-
-
-
Method Detail
-
init
public final void init() throws java.lang.Exception
init
- Throws:
java.lang.Exception
- if any.
-
onInit
protected void onInit()
onInit
-
startServer
public void startServer() throws java.lang.Exception
startServer
- Throws:
java.lang.Exception
- if any.
-
stopServer
public void stopServer() throws java.lang.Exception
stopServer
- Throws:
java.lang.Exception
- if any.
-
addRequestHandler
public void addRequestHandler(java.lang.String request, java.lang.String response)
addRequestHandler
- Parameters:
request
- aString
object.response
- aString
object.
-
setBanner
public void setBanner(java.lang.String banner)
setBanner
- Parameters:
banner
- aString
object.
-
setExpectedClose
public void setExpectedClose(java.lang.String closeRequest)
setExpectedClose
- Parameters:
closeRequest
- aString
object.
-
setExpectedClose
public void setExpectedClose(java.lang.String closeRequest, java.lang.String closeResponse)
setExpectedClose
- Parameters:
closeRequest
- aString
object.closeResponse
- aString
object.
-
getServerHandler
public org.apache.mina.core.service.IoHandler getServerHandler()
getServerHandler
- Returns:
- a
IoHandler
object.
-
setServerHandler
public void setServerHandler(org.apache.mina.core.service.IoHandler handler)
setServerHandler
- Parameters:
handler
- aIoHandler
object.
-
setPort
public void setPort(int port)
setPort
- Parameters:
port
- a int.
-
getPort
public int getPort()
getPort
- Returns:
- a int.
-
setBufferSize
public void setBufferSize(int bufferSize)
setBufferSize
- Parameters:
bufferSize
- a int.
-
getBufferSize
public int getBufferSize()
getBufferSize
- Returns:
- a int.
-
setIdleTime
public void setIdleTime(int idleTime)
setIdleTime
- Parameters:
idleTime
- a int.
-
getIdleTime
public int getIdleTime()
getIdleTime
- Returns:
- a int.
-
-