public class RestController extends Object
| Constructor and Description |
|---|
RestController() |
| Modifier and Type | Method and Description |
|---|---|
Tuple<Class<ApplicationController>,Method> |
defaultHandlerKey() |
void |
dispatchRequest(RestRequest request,
RestResponse restResponse) |
static void |
enhanceApplicationController(ApplicationController applicationController,
RestRequest request,
RestResponse restResponse) |
Tuple<Class<ApplicationController>,Method> |
errorHandlerKey() |
Tuple<Class<ApplicationController>,Method> |
getHandler(RestRequest request) |
void |
mergeParams(RestRequest restRequest,
Map<String,String> params) |
void |
registerHandler(RestRequest.Method method,
String path,
Tuple<Class<ApplicationController>,Method> handler) |
void |
setDefaultHandlerKey(Tuple<Class<ApplicationController>,Method> defaultHandlerKey) |
void |
setErrorHandlerKey(Tuple<Class<ApplicationController>,Method> errorHandlerKey) |
public void registerHandler(RestRequest.Method method, String path, Tuple<Class<ApplicationController>,Method> handler)
public void setDefaultHandlerKey(Tuple<Class<ApplicationController>,Method> defaultHandlerKey)
public void setErrorHandlerKey(Tuple<Class<ApplicationController>,Method> errorHandlerKey)
public Tuple<Class<ApplicationController>,Method> defaultHandlerKey()
public Tuple<Class<ApplicationController>,Method> errorHandlerKey()
public void dispatchRequest(RestRequest request, RestResponse restResponse) throws Exception
Exceptionpublic static void enhanceApplicationController(ApplicationController applicationController, RestRequest request, RestResponse restResponse) throws Exception
Exceptionpublic Tuple<Class<ApplicationController>,Method> getHandler(RestRequest request)
public void mergeParams(RestRequest restRequest, Map<String,String> params)
Copyright © 2020. All rights reserved.