|
|||||||||
| 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.SimpleServlett
public class SimpleServlett
A very simple servlett that answers all requests with a preconfigured response.
| Constructor Summary | |
|---|---|
SimpleServlett(HttpResponse.Status status,
java.lang.String contentType,
java.lang.String body)
|
|
| Method Summary | |
|---|---|
HttpResponse |
getOrPost(HttpRequest httpRequest)
Is invoked by the default implementation of AbstractServlett.get(HttpRequest) and AbstractServlett.post(HttpRequest). |
| Methods inherited from class de.unkrig.commons.net.http.servlett.AbstractServlett |
|---|
close, get, handleRequest, head, post, put |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleServlett(HttpResponse.Status status,
java.lang.String contentType,
java.lang.String body)
| Method Detail |
|---|
public HttpResponse getOrPost(HttpRequest httpRequest)
AbstractServlettAbstractServlett.get(HttpRequest) and AbstractServlett.post(HttpRequest). The
default implementation returns a BAD_REQUEST response.
getOrPost in class AbstractServlett
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||