org.webbitserver.handler
Class ServerHeaderHandler

java.lang.Object
  extended by 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.
 
Method Summary
 void handleHttpRequest(HttpRequest request, HttpResponse response, HttpControl control)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerHeaderHandler

public ServerHeaderHandler(String value)
Value to set for HTTP Server header, or null to ensure the header is blank.

Method Detail

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.