|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simpleframework.http.socket.service.DirectRouter
public class DirectRouter
The DirectRouter object is used to create a router
that uses a single service. Typically this is used by simpler
servers that wish to expose a single sub-protocol to clients.
RouterContainer| Constructor Summary | |
|---|---|
DirectRouter(Service service)
Constructor for the DirectRouter object. |
|
DirectRouter(Service service,
String protocol)
Constructor for the DirectRouter object. |
|
| Method Summary | |
|---|---|
Service |
route(Request request,
Response response)
This is used to route an incoming request to a service if the request represents a WebSocket handshake as defined by RFC 6455. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectRouter(Service service)
DirectRouter object. This
is used to create an object that will select a single service.
Creating an instance with this constructor means that the
protocol header will not be set.
service - this is the service used by this instanceprotocol - the protocol used by this router or null
public DirectRouter(Service service,
String protocol)
DirectRouter object. This
is used to create an object that will select a single service.
If the protocol specified is null then the response to the
session initiation will contain null for the protocol header.
service - this is the service used by this instanceprotocol - the protocol used by this router or null| Method Detail |
|---|
public Service route(Request request,
Response response)
route in interface Routerrequest - this is the request to use for routingresponse - this is the response to establish the session
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||