|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.unkrig.commons.net.http.servlett.AbstractServlett
de.unkrig.commons.net.http.servlett.FileServlett
public abstract class FileServlett
A Servlett that serves documents with Files.
| Constructor Summary | |
|---|---|
FileServlett()
|
|
| Method Summary | |
|---|---|
HttpResponse |
get(HttpRequest httpRequest)
Handles one HTTP GET request. |
protected abstract java.io.File |
getFile(HttpRequest httpRequest)
Translates an HTTP request (typically the URI of the HTTP request) into a File. |
HttpResponse |
put(HttpRequest httpRequest)
Handles one HTTP PUT request. |
| Methods inherited from class de.unkrig.commons.net.http.servlett.AbstractServlett |
|---|
close, getOrPost, handleRequest, head, post |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileServlett()
| Method Detail |
|---|
protected abstract java.io.File getFile(HttpRequest httpRequest)
File.
File corresponding with the HTTP request
public HttpResponse get(HttpRequest httpRequest)
throws java.io.IOException
AbstractServlettAbstractServlett.getOrPost(HttpRequest).
get in class AbstractServlettjava.io.IOException
public HttpResponse put(HttpRequest httpRequest)
throws java.io.IOException
AbstractServlett
put in class AbstractServlettjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||