Java Reference
In-Depth Information
Thefollowingtableshowsadescriptionofprotocolupgrademethods,interfaces, and
classes:
Class/Interface
Method
Description
This method starts the up-
grade processing, instanti-
ates, and returns the handler
class that implements the Ht-
tpUpgradeHandler inter-
face.
HttpServletRequest HttpUpgradeHandler
upgrade(Class hand-
ler)
This method is called when
the upgrade operation is ac-
cepted by the Servlet. It takes
a WebConnection object to
allow the protocol handler
have access to the input/out-
put streams.
HttpUpgradeHandler
void
init(WebConnection
wc)
This method is called when
the client disconnects.
void destroy()
This method gives access to
the input stream of the con-
nection.
WebConnection
ServletInputStream
getInputStream()
This method gives access to
the output stream of the con-
nection.
ServletOutputStream
getOutputStream()
Search WWH ::




Custom Search