public class HttpService
extends java.lang.Object
| Constructor and Description |
|---|
HttpService(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clear() |
HttpService |
combine(HttpService other) |
java.util.Optional<HttpResponse> |
execute(HttpRequest request) |
HttpService |
mount(java.lang.String path,
HttpService service) |
java.lang.String |
name() |
java.lang.String |
toString() |
HttpService |
when(java.util.function.Predicate<HttpRequest> matcher,
java.util.function.Function<HttpRequest,HttpResponse> handler) |
public java.lang.String name()
public HttpService mount(java.lang.String path, HttpService service)
public HttpService when(java.util.function.Predicate<HttpRequest> matcher, java.util.function.Function<HttpRequest,HttpResponse> handler)
public java.util.Optional<HttpResponse> execute(HttpRequest request)
public HttpService combine(HttpService other)
public java.lang.String toString()
toString in class java.lang.Objectprotected void clear()