public class StaticResponseHandler extends Object implements RoutingObject
| Modifier and Type | Class and Description |
|---|---|
static class |
StaticResponseHandler.Factory
Builds a static response handler from Yaml configuration.
|
| Modifier and Type | Field and Description |
|---|---|
static Schema.FieldType |
SCHEMA |
| Constructor and Description |
|---|
StaticResponseHandler(int status,
String text,
HttpHeaders headers) |
| Modifier and Type | Method and Description |
|---|---|
Eventual<LiveHttpResponse> |
handle(LiveHttpRequest request,
HttpInterceptor.Context context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstoppublic static final Schema.FieldType SCHEMA
public StaticResponseHandler(int status,
String text,
HttpHeaders headers)
public Eventual<LiveHttpResponse> handle(LiveHttpRequest request, HttpInterceptor.Context context)
handle in interface HttpHandlerCopyright © 2013–2020 Hotels.com. All rights reserved.