|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jetty.websocket.WebSocketFactory
public class WebSocketFactory
Factory to create WebSocket connections
| Constructor Summary | |
|---|---|
WebSocketFactory()
|
|
WebSocketFactory(int bufferSize)
|
|
| Method Summary | |
|---|---|
int |
getBufferSize()
Get the bufferSize. |
long |
getMaxIdleTime()
Get the maxIdleTime. |
void |
setBufferSize(int bufferSize)
Set the bufferSize. |
void |
setMaxIdleTime(int maxIdleTime)
Set the maxIdleTime. |
void |
upgrade(HttpServletRequest request,
HttpServletResponse response,
WebSocket websocket,
java.lang.String origin,
java.lang.String subprotocol)
Upgrade the request/response to a WebSocket Connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebSocketFactory()
public WebSocketFactory(int bufferSize)
| Method Detail |
|---|
public long getMaxIdleTime()
public void setMaxIdleTime(int maxIdleTime)
maxIdleTime - the maxIdleTime to setpublic int getBufferSize()
public void setBufferSize(int bufferSize)
bufferSize - the bufferSize to set
public void upgrade(HttpServletRequest request,
HttpServletResponse response,
WebSocket websocket,
java.lang.String origin,
java.lang.String subprotocol)
throws java.io.IOException
This method will not normally return, but will instead throw a UpgradeConnectionException, to exit HTTP handling and initiate WebSocket handling of the connection.
request - The request to upgraderesponse - The response to upgradewebsocket - The websocket handler implementation to useorigin - The origin of the websocket connectionsubprotocol - The protocol
UpgradeConnectionException - Thrown to upgrade the connection
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||