public class Container extends Object
| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.ServletConfig |
config |
protected javax.servlet.ServletContext |
context |
Boolean |
debug |
String |
destroy |
String |
encoding |
Boolean |
expire |
String |
init |
boolean |
namingConversion |
net.arnx.jsonic.web.Container.ProcessorConfig |
processor |
protected javax.servlet.http.HttpServlet |
servlet |
| Constructor and Description |
|---|
Container() |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String message) |
void |
debug(String message,
Throwable e) |
void |
destory() |
void |
end(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
error(String message,
Throwable e) |
void |
exception(Exception e,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Object |
execute(JSON json,
Object component,
Method method,
List<?> params) |
protected Class<?> |
findClass(String name) |
Object |
getComponent(String className) |
Object |
getErrorData(Throwable cause) |
Method |
getMethod(Object component,
String methodName,
List<?> params) |
void |
init(javax.servlet.http.HttpServlet servlet) |
boolean |
isDebugMode() |
protected boolean |
limit(Class<?> c,
Method method) |
Object |
postinvoke(Object component,
Method method,
Object result)
Called after invoked the target method.
|
Object[] |
preinvoke(Object component,
Method method,
Object... params)
Called before invoking the target method.
|
void |
start(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
warn(String message) |
void |
warn(String message,
Throwable e) |
public Boolean debug
public String init
public String destroy
public String encoding
public Boolean expire
public boolean namingConversion
public net.arnx.jsonic.web.Container.ProcessorConfig processor
protected javax.servlet.ServletConfig config
protected javax.servlet.ServletContext context
protected javax.servlet.http.HttpServlet servlet
public void init(javax.servlet.http.HttpServlet servlet)
throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic void start(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionpublic Method getMethod(Object component, String methodName, List<?> params) throws NoSuchMethodException
NoSuchMethodExceptionpublic Object[] preinvoke(Object component, Method method, Object... params) throws Exception
component - The target instance.method - The invoking method.params - The parameters before processing of the target method.Exceptionpublic Object execute(JSON json, Object component, Method method, List<?> params) throws Exception
Exceptionpublic Object postinvoke(Object component, Method method, Object result) throws Exception
component - The target instance.method - The invoked method.result - The returned value of the target method call.Exceptionpublic void exception(Exception e, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic void end(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionpublic void destory()
protected Class<?> findClass(String name) throws ClassNotFoundException
ClassNotFoundExceptionpublic boolean isDebugMode()
public void debug(String message)
public void warn(String message)