Package | Description |
---|---|
com.xatkit.core.server |
Contains the Xatkit server implementation.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.http.HttpEntity |
HttpEntityHelper.createErrorEntity(RestHandlerException e)
Creates an
HttpEntity representing the error wrapped in the provided RestHandlerException . |
Modifier and Type | Method and Description |
---|---|
com.google.gson.JsonElement |
RestHandlerFactory.JsonRestHandlerFunction.handle(List<org.apache.http.Header> headers,
List<org.apache.http.NameValuePair> params,
com.google.gson.JsonElement content)
The handling function of
JsonRestHandler . |
Object |
RestHandlerFactory.EmptyContentRestHandlerFunction.handle(List<org.apache.http.Header> headers,
List<org.apache.http.NameValuePair> params,
Object content)
The handling function of
EmptyContentRestHandler . |
Object |
RestHandler.handleContent(List<org.apache.http.Header> headers,
List<org.apache.http.NameValuePair> params,
Object content)
Handles the raw HTTP request.
|
protected abstract Object |
RestHandler.handleParsedContent(List<org.apache.http.Header> headers,
List<org.apache.http.NameValuePair> params,
C content)
Handles the received
headers , params , and parsed payload. |
abstract com.google.gson.JsonElement |
JsonRestHandler.handleParsedContent(List<org.apache.http.Header> headers,
List<org.apache.http.NameValuePair> params,
com.google.gson.JsonElement content)
Handles the received
headers , params , and JsonElement parsed from the request payload. |
protected abstract Object |
EmptyContentRestHandler.handleParsedContent(List<org.apache.http.Header> headers,
List<org.apache.http.NameValuePair> params,
Object content)
Handles the request.
|
Object |
XatkitServer.notifyRestHandler(HttpMethod httpMethod,
String uri,
List<org.apache.http.Header> headers,
List<org.apache.http.NameValuePair> params,
Object content,
String contentType)
Notifies the REST endpoint associated with the provided
uri . |
Copyright © 2020 SOM Research Lab. All rights reserved.