Package org.apache.sling.servlets.post

Examples of org.apache.sling.servlets.post.JSONResponse


        // Fall through to default behavior
        @SuppressWarnings({"MismatchedQueryAndUpdateOfCollection"})
        final MediaRangeList mediaRangeList = new MediaRangeList(req);
        if (JSONResponse.RESPONSE_CONTENT_TYPE.equals(mediaRangeList.prefer("text/html", JSONResponse.RESPONSE_CONTENT_TYPE))) {
            return new JSONResponse();
        } else {
            return new HtmlResponse();
        }
    }
View Full Code Here


     * </ul>
     * or a {@link org.apache.sling.api.servlets.HtmlResponse} otherwise
     */
    protected AbstractPostResponse createHtmlResponse(SlingHttpServletRequest req) {
        if (JSONResponse.RESPONSE_CONTENT_TYPE.equals(req.getResponseContentType())) {
            return new JSONResponse();
        } else {
            return new HtmlResponse();
        }
    }
View Full Code Here

     * </ul>
     * or a {@link org.apache.sling.api.servlets.HtmlResponse} otherwise
     */
    protected AbstractPostResponse createHtmlResponse(SlingHttpServletRequest req) {
      if (JSONResponse.RESPONSE_CONTENT_TYPE.equals(req.getResponseContentType())) {
        return new JSONResponse();
      } else {
            return new HtmlResponse();
      }
    }
View Full Code Here

TOP

Related Classes of org.apache.sling.servlets.post.JSONResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.