|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentTypeHandlerManager
Manages content type handlers
Field Summary | |
---|---|
static String |
STRUTS_REST_HANDLER_OVERRIDE_PREFIX
|
Method Summary | |
---|---|
String |
findExtension(String url)
Finds the extension in the url |
ContentTypeHandler |
getHandlerForRequest(javax.servlet.http.HttpServletRequest req)
Gets the handler for the request by looking at the request content type and extension |
ContentTypeHandler |
getHandlerForResponse(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Gets the handler for the response by looking at the extension of the request |
String |
handleResult(com.opensymphony.xwork2.config.entities.ActionConfig actionConfig,
Object methodResult,
Object target)
Deprecated. use version which requires ActionInvocation |
String |
handleResult(com.opensymphony.xwork2.ActionInvocation actionInvocation,
Object methodResult,
Object target)
|
Field Detail |
---|
static final String STRUTS_REST_HANDLER_OVERRIDE_PREFIX
Method Detail |
---|
ContentTypeHandler getHandlerForRequest(javax.servlet.http.HttpServletRequest req)
req
- The request
ContentTypeHandler getHandlerForResponse(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
req
- The request
@Deprecated String handleResult(com.opensymphony.xwork2.config.entities.ActionConfig actionConfig, Object methodResult, Object target) throws IOException
ActionInvocation
actionConfig
- The action config for the current requestmethodResult
- The object returned from the action methodtarget
- The object to return, usually the action object
IOException
- If unable to write to the responseString handleResult(com.opensymphony.xwork2.ActionInvocation actionInvocation, Object methodResult, Object target) throws IOException
IOException
String findExtension(String url)
url
- The url
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |