de.unkrig.commons.net.http.servlett
Interface Servlett

All Superinterfaces:
java.io.Closeable
All Known Implementing Classes:
AbstractServlett, FileServlett, HttpAuthenticationServlett, SimpleServlett

public interface Servlett
extends java.io.Closeable

An entity that handles HTTP requests, similar to an J22 servlet.

See Also:
handleRequest(HttpRequest)

Method Summary
 HttpResponse handleRequest(HttpRequest httpRequest)
          Notice that the caller is responsible for disposing the returned request's body.
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

handleRequest

@Nullable
HttpResponse handleRequest(HttpRequest httpRequest)
                           throws java.io.IOException
Notice that the caller is responsible for disposing the returned request's body.

Returns:
null iff this handler cannot handle the httpRequest
Throws:
java.io.IOException