|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.dreamhead.moco.ResponseSetting
com.github.dreamhead.moco.HttpServer
public abstract class HttpServer
| Field Summary |
|---|
| Fields inherited from class com.github.dreamhead.moco.ResponseSetting |
|---|
eventTriggers, handler |
| Constructor Summary | |
|---|---|
HttpServer()
|
|
| Method Summary | |
|---|---|
Setting |
delete(RequestMatcher matcher)
|
Setting |
get(RequestMatcher matcher)
|
ResponseSetting |
mount(java.lang.String dir,
MountTo target,
MountPredicate... predicates)
|
protected abstract Setting |
onRequestAttached(RequestMatcher matcher)
|
abstract int |
port()
|
Setting |
post(RequestMatcher matcher)
|
Setting |
put(RequestMatcher matcher)
|
Setting |
request(RequestMatcher... matchers)
|
Setting |
request(RequestMatcher matcher)
|
| Methods inherited from class com.github.dreamhead.moco.ResponseSetting |
|---|
context, on, redirectTo, response, response, response, response, response |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpServer()
| Method Detail |
|---|
public abstract int port()
protected abstract Setting onRequestAttached(RequestMatcher matcher)
public Setting request(RequestMatcher matcher)
public Setting request(RequestMatcher... matchers)
public Setting get(RequestMatcher matcher)
public Setting post(RequestMatcher matcher)
public Setting put(RequestMatcher matcher)
public Setting delete(RequestMatcher matcher)
public ResponseSetting mount(java.lang.String dir,
MountTo target,
MountPredicate... predicates)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||