Package org.apache.sling.servlets.post
Class HtmlResponse
- java.lang.Object
-
- org.apache.sling.servlets.post.AbstractPostResponse
-
- org.apache.sling.servlets.post.HtmlResponse
-
- All Implemented Interfaces:
PostResponse
public class HtmlResponse extends AbstractPostResponse
TheHtmlResponse
is anAbstractPostResponse
preparing the response in HTML (actually XHTML) such that it can be interpreted as a plain response in a browser or as XML response in an Ajax request.
-
-
Field Summary
-
Fields inherited from class org.apache.sling.servlets.post.AbstractPostResponse
PN_ERROR, PN_IS_CREATED, PN_LOCATION, PN_PARENT_LOCATION, PN_PATH, PN_REFERER, PN_STATUS_CODE, PN_STATUS_MESSAGE, PN_TITLE
-
-
Constructor Summary
Constructors Constructor Description HtmlResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onChange(java.lang.String type, java.lang.String... arguments)
Records a generic change of the giventype
.-
Methods inherited from class org.apache.sling.servlets.post.AbstractPostResponse
getError, getLocation, getParentLocation, getPath, getReferer, getStatusCode, getStatusMessage, isCreateRequest, isSuccessful, onCopied, onCreated, onDeleted, onModified, onMoved, send, setCreateRequest, setError, setLocation, setParentLocation, setPath, setReferer, setStatus, setTitle
-
-
-
-
Method Detail
-
onChange
public void onChange(java.lang.String type, java.lang.String... arguments)
Records a generic change of the giventype
.The change is added to the internal list of changes with the syntax of a method call, where the
type
is the method name and thearguments
are the string arguments to the method enclosed in double quotes. For example, the the callonChange("sameple", "arg1", "arg2");
is aded assample("arg1", "arg2")
to the internal list of changes.- Parameters:
type
- The type of the modificationarguments
- The arguments to the modifications
-
-