public class AjaxUtil extends javax.servlet.http.HttpServlet
Constructor and Description |
---|
AjaxUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getNextPathPart(String path,
String lastPart)
Given a requestUri path, find the next uri "fragment" after the "/lastPart/" one.
|
static String |
toJson(Object input)
Uses Google Gson (https://code.google.com/p/google-gson/) to convert to JSON
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public AjaxUtil()
public static String toJson(Object input)
input
- the object to be converted to JSONpublic static String getNextPathPart(String path, String lastPart) throws javax.servlet.ServletException
path
- the RequestURI to search usually done by calling request.getRequestUri().lastPart
- the previousPart of the path to search after.javax.servlet.ServletException
Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.