org.webbitserver.handler
Class ServerHeaderHandler
java.lang.Object
org.webbitserver.handler.ServerHeaderHandler
- All Implemented Interfaces:
- HttpHandler
public class ServerHeaderHandler
- extends Object
- implements HttpHandler
Handler that sets the HTTP 'Server' response header.
|
Constructor Summary |
ServerHeaderHandler(String value)
Value to set for HTTP Server header, or null to ensure the header is blank. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerHeaderHandler
public ServerHeaderHandler(String value)
- Value to set for HTTP Server header, or null to ensure the header is blank.
handleHttpRequest
public void handleHttpRequest(HttpRequest request,
HttpResponse response,
HttpControl control)
throws Exception
- Specified by:
handleHttpRequest in interface HttpHandler
- Throws:
Exception
Copyright © 2013. All Rights Reserved.