Class ReflectiveAjaxCallbackHandler
java.lang.Object
com.inductiveautomation.ignition.gateway.web.components.react.ReflectiveAjaxCallbackHandler
- All Implemented Interfaces:
AjaxCallbackHandler
,Serializable
Created by carlg on 2/10/2016.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReflectiveAjaxCallbackHandler
(Object methodSource, org.apache.wicket.Component component) This constructor is for having a separate method source that is not a wicket componentReflectiveAjaxCallbackHandler
(org.apache.wicket.Component componentAndMethodSource) This constructor means that the reflective method source is also a wicket component -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.wicket.request.IRequestHandler
respond
(javax.servlet.http.HttpServletRequest hsr) protected org.apache.wicket.request.IRequestHandler
respondGet
(javax.servlet.http.HttpServletRequest hsr) Implemented to throw http 500.org.apache.wicket.request.IRequestHandler
respondInvokableJson
(JSONObject argument, Method method) org.apache.wicket.request.IRequestHandler
respondInvokableWicket
(javax.servlet.http.HttpServletRequest request, Method method) protected org.apache.wicket.request.IRequestHandler
respondJsonPost
(javax.servlet.http.HttpServletRequest hsr) If the web request posted application/json content to the callback URL, it gets fed into hereprotected org.apache.wicket.request.IRequestHandler
respondWicketAjax
(javax.servlet.http.HttpServletRequest hsr)
-
Constructor Details
-
ReflectiveAjaxCallbackHandler
public ReflectiveAjaxCallbackHandler(org.apache.wicket.Component componentAndMethodSource) This constructor means that the reflective method source is also a wicket component -
ReflectiveAjaxCallbackHandler
This constructor is for having a separate method source that is not a wicket component
-
-
Method Details
-
respond
public org.apache.wicket.request.IRequestHandler respond(javax.servlet.http.HttpServletRequest hsr) throws Exception - Specified by:
respond
in interfaceAjaxCallbackHandler
- Throws:
Exception
-
respondGet
protected org.apache.wicket.request.IRequestHandler respondGet(javax.servlet.http.HttpServletRequest hsr) Implemented to throw http 500. override to implement -
respondJsonPost
protected org.apache.wicket.request.IRequestHandler respondJsonPost(javax.servlet.http.HttpServletRequest hsr) throws Exception If the web request posted application/json content to the callback URL, it gets fed into here- Throws:
Exception
-
respondInvokableJson
public org.apache.wicket.request.IRequestHandler respondInvokableJson(JSONObject argument, Method method) throws Exception - Throws:
Exception
-
respondWicketAjax
protected org.apache.wicket.request.IRequestHandler respondWicketAjax(javax.servlet.http.HttpServletRequest hsr) throws Exception - Throws:
Exception
-
respondInvokableWicket
public org.apache.wicket.request.IRequestHandler respondInvokableWicket(javax.servlet.http.HttpServletRequest request, Method method) throws Exception - Throws:
Exception
-