Package org.silverpeas.core.web.util
Class IFrameAjaxTransportUtil
- java.lang.Object
-
- org.silverpeas.core.web.util.IFrameAjaxTransportUtil
-
public class IFrameAjaxTransportUtil extends Object
This class provides some tools to more effectively use the technique of ajax iframe transport. User: Yohann Chastagnier Date: 16/07/13
-
-
Field Summary
Fields Modifier and Type Field Description static String
AJAX_IFRAME_TRANSPORT
static String
X_REQUESTED_WITH
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.ws.rs.WebApplicationException
createWebApplicationExceptionWithJSonErrorInHtmlContainer(javax.ws.rs.WebApplicationException wae)
Packaging an Web Application Exception as JSon String and then as HTML to be performed by IFrame Ajax Transport Javascript Plugin.static String
packJSonArrayWithHtmlContainer(UnaryOperator<JSONCodec.JSONArray> jsonArrayBuilder)
Packaging a JSon object list as HTML to be performed by IFrame Ajax Transport Javascript Plugin.protected static String
packJSonDataWithHtmlContainer(String jsonString)
Packaging a JSon string as HTML to be performed by IFrame Ajax Transport Javascript Plugin.static String
packJSonObjectWithHtmlContainer(UnaryOperator<JSONCodec.JSONObject> jsonObjectBuilder)
Packaging a JSon object as HTML to be performed by IFrame Ajax Transport Javascript Plugin.static String
packObjectToJSonDataWithHtmlContainer(Object object)
Packaging an object as JSon String and then as HTML to be performed by IFrame Ajax Transport Javascript Plugin.static String
packObjectToJSonDataWithHtmlContainer(List<Object> objects)
Packaging an object list as JSon String and then as HTML to be performed by IFrame Ajax Transport Javascript Plugin.
-
-
-
Field Detail
-
X_REQUESTED_WITH
public static final String X_REQUESTED_WITH
- See Also:
- Constant Field Values
-
AJAX_IFRAME_TRANSPORT
public static final String AJAX_IFRAME_TRANSPORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
createWebApplicationExceptionWithJSonErrorInHtmlContainer
public static javax.ws.rs.WebApplicationException createWebApplicationExceptionWithJSonErrorInHtmlContainer(javax.ws.rs.WebApplicationException wae)
Packaging an Web Application Exception as JSon String and then as HTML to be performed by IFrame Ajax Transport Javascript Plugin.- Parameters:
wae
-- Returns:
-
packObjectToJSonDataWithHtmlContainer
public static String packObjectToJSonDataWithHtmlContainer(Object object)
Packaging an object as JSon String and then as HTML to be performed by IFrame Ajax Transport Javascript Plugin.- Parameters:
object
-- Returns:
-
packObjectToJSonDataWithHtmlContainer
public static String packObjectToJSonDataWithHtmlContainer(List<Object> objects)
Packaging an object list as JSon String and then as HTML to be performed by IFrame Ajax Transport Javascript Plugin.- Parameters:
objects
-- Returns:
-
packJSonObjectWithHtmlContainer
public static String packJSonObjectWithHtmlContainer(UnaryOperator<JSONCodec.JSONObject> jsonObjectBuilder)
Packaging a JSon object as HTML to be performed by IFrame Ajax Transport Javascript Plugin.- Parameters:
jsonObjectBuilder
- a dynamic builder of a JSON object.- Returns:
-
packJSonArrayWithHtmlContainer
public static String packJSonArrayWithHtmlContainer(UnaryOperator<JSONCodec.JSONArray> jsonArrayBuilder)
Packaging a JSon object list as HTML to be performed by IFrame Ajax Transport Javascript Plugin.- Parameters:
jsonArrayBuilder
- a dynamic builder of a JSON array of JSON objects.- Returns:
-
-