|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.craftforge.essential.controller.Setup
public class Setup
Data structure containing all external (request and configuration) information for the phases.
| Constructor Summary | |
|---|---|
Setup(ResourceManager resourceManager,
DocumentationManager documentationManager,
Configuration configuration,
Request request,
Response response)
Constructs the setup. |
|
| Method Summary | |
|---|---|
String |
getAcceptedCharset()
Gets the encoding charset for result serialization. |
String |
getAcceptedMediaType()
Gets the media type for result serialization. |
Map<String,String[]> |
getAllParameters()
Gets all query, form and resource parameters. |
BodyHandler |
getBodyHandler()
Gets the body handler. |
Configuration |
getConfiguration()
Gets the controller configuration. |
DocumentationManager |
getDocumentationManager()
Gets the documentation manager. |
HeaderHandler |
getHeaderHandler()
Gets the header handler. |
String |
getHttpMethod()
Gets the HTTP method for result serialization. |
ParameterHandler |
getParameterHandler()
Gets the parameter handler. |
Map<String,String[]> |
getPathParameters()
Gets the resource parameters. |
PropertyHandler |
getPropertyHandler()
Gets the property handler. |
Map<String,String[]> |
getQueryParameters()
Gets the URI query parameters. |
Request |
getRequest()
Gets the normalized HTTP request. |
InputStream |
getRequestBodyInputStream()
Gets the body input stream. |
String |
getRequestUrlInfoPart()
Gets the request URL info part. |
String |
getRequestUrlMetaPart()
Gets the request URL meta part. |
String |
getRequestUrlResourcePart()
Gets the request URL resource path by removing the meta data part from the URL info part. |
ResourceManager |
getResourceManager()
Gets the resource manager. |
Response |
getResponse()
Gets the normalized HTTP response. |
OutputStream |
getResponseBodyOutputStream()
Gets the output stream for streaming the serialized response body. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Setup(ResourceManager resourceManager,
DocumentationManager documentationManager,
Configuration configuration,
Request request,
Response response)
resourceManager - The resource managerdocumentationManager - The documentation managerconfiguration - The controller configurationrequest - The normalized HTTP requestresponse - The normalized HTTP response| Method Detail |
|---|
public ParameterHandler getParameterHandler()
public HeaderHandler getHeaderHandler()
public BodyHandler getBodyHandler()
public PropertyHandler getPropertyHandler()
public String getAcceptedMediaType()
throws ControllerException
ControllerException - if the header was not submitted not and no default value is set
public String getAcceptedCharset()
throws ControllerException
ControllerException - if the header was not submitted not and no default value is setpublic String getHttpMethod()
public ResourceManager getResourceManager()
public DocumentationManager getDocumentationManager()
public Configuration getConfiguration()
public String getRequestUrlResourcePart()
public String getRequestUrlMetaPart()
public String getRequestUrlInfoPart()
public Map<String,String[]> getQueryParameters()
public Map<String,String[]> getPathParameters()
public Map<String,String[]> getAllParameters()
public InputStream getRequestBodyInputStream()
public OutputStream getResponseBodyOutputStream()
public Request getRequest()
public Response getResponse()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||