|
||||||||||
| 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 | |
|---|---|
java.io.OutputStream |
getOutputStream(Context ctx)
If a server wants to write to a specific connection. |
java.io.OutputStream |
getOutputStream(java.nio.channels.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 java.io.OutputStream getOutputStream(java.nio.channels.SelectionKey key)
getOutputStream in interface Serverkey - SelectionKey
public java.io.OutputStream getOutputStream(Context ctx)
Server
getOutputStream in interface Serverctx - in the momment should be a Context
public void start()
start in interface Serverpublic void stop()
stop in interface Server
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||