com.day.cq.commons.servlets
Class HtmlStatusResponseHelper

java.lang.Object
  extended by com.day.cq.commons.servlets.HtmlStatusResponseHelper

public class HtmlStatusResponseHelper
extends Object

HtmlResponseHelper...


Constructor Summary
HtmlStatusResponseHelper()
           
 
Method Summary
static org.apache.sling.api.servlets.HtmlResponse createStatusResponse(boolean success, String message)
          Create a html status response
static org.apache.sling.api.servlets.HtmlResponse createStatusResponse(boolean success, String[] messages, String[] paths)
          Create a html status response
static org.apache.sling.api.servlets.HtmlResponse createStatusResponse(boolean success, String message, String path)
          Create a html status response
static org.apache.sling.api.servlets.HtmlResponse createStatusResponse(int status, String message)
          Create a html status response
static org.apache.sling.api.servlets.HtmlResponse createStatusResponse(int status, String message, String path)
          Create a html status response
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlStatusResponseHelper

public HtmlStatusResponseHelper()
Method Detail

createStatusResponse

public static org.apache.sling.api.servlets.HtmlResponse createStatusResponse(boolean success,
                                                                              String message,
                                                                              String path)
Create a html status response

Parameters:
success - true if action succeeded
message - Action/error message
path - path of the "modified" page
Returns:
the html response

createStatusResponse

public static org.apache.sling.api.servlets.HtmlResponse createStatusResponse(int status,
                                                                              String message,
                                                                              String path)
Create a html status response

Parameters:
status - status code
message - Action/error message
path - path of the "modified" page
Returns:
the html response

createStatusResponse

public static org.apache.sling.api.servlets.HtmlResponse createStatusResponse(boolean success,
                                                                              String message)
Create a html status response

Parameters:
success - true if action succeeded
message - Action/error message
Returns:
the html response

createStatusResponse

public static org.apache.sling.api.servlets.HtmlResponse createStatusResponse(int status,
                                                                              String message)
Create a html status response

Parameters:
status - http status code
message - Action/error message
Returns:
the html response

createStatusResponse

public static org.apache.sling.api.servlets.HtmlResponse createStatusResponse(boolean success,
                                                                              String[] messages,
                                                                              String[] paths)
Create a html status response

Parameters:
success - true if action succeeded
messages - Action/error messages
paths - paths of the "modified" page
Returns:
the html response


Copyright © 2008 Day Management AG. All Rights Reserved.