public class ApiAssistant extends Object
Constructor and Description |
---|
ApiAssistant() |
Modifier and Type | Method and Description |
---|---|
static Api |
determineApi(Map<String,String> templateVars)
Determines the api being used from the templateVars
|
JacksonHelper |
getJsonHelper() |
ErrorResponse |
resolveException(Exception ex)
Resolves an exception as a json error.
|
void |
setDefaultResolver(ExceptionResolver<Exception> defaultResolver) |
void |
setJsonHelper(JacksonHelper jsonHelper) |
void |
setResolver(ExceptionResolver<Exception> resolver) |
void |
setWebScriptExceptionResolver(ExceptionResolver<org.springframework.extensions.webscripts.WebScriptException> webScriptExceptionResolver) |
public static Api determineApi(Map<String,String> templateVars)
templateVars
- public ErrorResponse resolveException(Exception ex)
exception
- public JacksonHelper getJsonHelper()
public void setDefaultResolver(ExceptionResolver<Exception> defaultResolver)
public void setWebScriptExceptionResolver(ExceptionResolver<org.springframework.extensions.webscripts.WebScriptException> webScriptExceptionResolver)
public void setResolver(ExceptionResolver<Exception> resolver)
public void setJsonHelper(JacksonHelper jsonHelper)
Copyright © 2005–2017 Alfresco Software. All rights reserved.