|Constructor and Description|
Creates a new event.
|Modifier and Type||Method and Description|
The accepted protocol.
Returns the original request.
Returns the resource for which the socket was opened.
addCompletionEvent, associated, cancel, channels, channels, completionEvents, currentResults, defaultCriterion, forChannels, get, get, handled, handlingError, isCancelled, isDone, isEligibleFor, isStopped, processedBy, results, results, setAssociated, setChannels, setRequiresResult, setResult, stop, tieTo, toString
disableTracking, enqueued, firstResultAssigned, isTracked
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public ProtocolSwitchAccepted(Request.In request, String protocol)
Creates a new event. The request event passed in as parameter
is used by the
HttpServer to build the response message
and link an existing session to the web socket.
To be precise, the
HttpServer retrieves the
from the request event and uses the prepared response provided by
HttpRequest.response() to build the response. The default
information contained in this prepared response is sufficient to
build the actual response. If required, the accepting component
can add special header fields to the prepared response.
request- the base response data
protocol- the accepted protocol