public class SmileysHandler extends HttpHandler
HttpHandler
to serve HTML page referencing 48 smiley images.
When requesting this page user may specify the smiley image size: 16 and 64;
and specify if SPDY Server-Push has to be used to send smiley images before
the client explicitly request them.
In order to specify the image size the "size" parameter has to be used
(supported values are 16 and 64).
In order to enable/disable SPDY Server-Push the "push" parameter has to be
used (supported values are true, false).
For example to request smileys with size 64x64 using SPDY Server-Push mode, the
request should look like: https://localhost:8080/getsmileys?size=64&push=trueConstructor and Description |
---|
SmileysHandler(String smileysContextPath,
File smileysRoot)
Construct SmileysHandler
|
Modifier and Type | Method and Description |
---|---|
void |
service(Request request,
Response response)
This method should contain the logic for any HTTP extension to the
Grizzly HTTP web server.
|
destroy, getErrorPageGenerator, getName, getRequestExecutorProvider, getRequestURIEncoding, getSessionCookieName, getSessionManager, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, start, updatePaths
Copyright © 2015 Oracle Corporation. All rights reserved.