org.webbitserver.handler
Class StringHttpHandler

java.lang.Object
  extended by org.webbitserver.handler.StringHttpHandler
All Implemented Interfaces:
HttpHandler

public class StringHttpHandler
extends Object
implements HttpHandler


Constructor Summary
StringHttpHandler(String contentType, String body)
           
StringHttpHandler(String contentType, String body, Charset charset)
           
 
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

StringHttpHandler

public StringHttpHandler(String contentType,
                         String body)

StringHttpHandler

public StringHttpHandler(String contentType,
                         String body,
                         Charset charset)
Method Detail

handleHttpRequest

public void handleHttpRequest(HttpRequest request,
                              HttpResponse response,
                              HttpControl control)
Specified by:
handleHttpRequest in interface HttpHandler


Copyright © 2013. All Rights Reserved.