Java Reference
In-Depth Information
public class CypherUpgradeHandler implements
HttpUpgradeHandler{
Logger logger =
Logger.getLogger(CypherUpgradeHandler.class.getName());
public void init(WebConnection wc) {
ServletInputStream input = null;
ServletOutputStream output = null;
try {
System.out.println("A client just
logged in");
input = wc.getInputStream();
// use input stream
output = wc.getOutputStream();
//use output stream
} catch (IOException ex) {
logger.log(Level.SEVERE, null, ex);
}
}
public void destroy() {
System.out.println("A client just
logged out");
}
}
Search WWH ::




Custom Search