|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.filter.CustomProtocolServer
public abstract class CustomProtocolServer
Out of the box TCP (TLS optional) Server for using CustomProtocol Comunictaion Layer.
Constructor Summary | |
---|---|
protected |
CustomProtocolServer(int port)
|
protected |
CustomProtocolServer(int port,
SSLConfig sslConfig)
|
Method Summary | |
---|---|
OutputStream |
getOutputStream(Context ctx)
If a server wants to write to a specific connection. |
OutputStream |
getOutputStream(SelectionKey key)
Can be used to write to a specific connection. |
void |
start()
Starts this server. |
void |
stop()
Stops this server |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sun.grizzly.filter.Server |
---|
service |
Constructor Detail |
---|
protected CustomProtocolServer(int port)
protected CustomProtocolServer(int port, SSLConfig sslConfig)
Method Detail |
---|
public OutputStream getOutputStream(SelectionKey key)
getOutputStream
in interface Server
key
- SelectionKey
public OutputStream getOutputStream(Context ctx)
Server
getOutputStream
in interface Server
ctx
- in the momment should be a Context
public void start()
start
in interface Server
public void stop()
stop
in interface Server
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |