public class HtmlResponse extends AbstractPostResponse
PN_ERROR, PN_IS_CREATED, PN_LOCATION, PN_PARENT_LOCATION, PN_PATH, PN_REFERER, PN_STATUS_CODE, PN_STATUS_MESSAGE, PN_TITLE
Constructor and Description |
---|
HtmlResponse(XSSAPI xss,
I18n i18n,
Locale locale) |
Modifier and Type | Method and Description |
---|---|
void |
addLink(String rel,
String href,
String text)
Adds a link to the response.
|
void |
addRedirectLink(String href,
String text)
Adds a redirect link to indicate where the client should go after the post.
|
void |
onChange(String type,
String... arguments)
Records a generic change of the given
type with arguments. |
void |
onCopied(String srcPath,
String dstPath)
Records a 'copied' change.
|
void |
onCreated(String path)
Records a 'created' change
|
void |
onDeleted(String path)
Records a 'deleted' change
|
void |
onModified(String path)
Records a 'modified' change
|
void |
onMoved(String srcPath,
String dstPath)
Records a 'moved' change.
|
void |
setDescription(String description) |
void |
setGeneralError(int code)
Sets the general purpose error message using the given status code.
|
getError, getLocation, getParentLocation, getPath, getReferer, getStatusCode, getStatusMessage, isCreateRequest, isSuccessful, send, setCreateRequest, setError, setLocation, setParentLocation, setPath, setReferer, setStatus, setTitle
public HtmlResponse(XSSAPI xss, I18n i18n, Locale locale)
public void onModified(String path)
AbstractPostResponse
onModified
in interface PostResponse
onModified
in class AbstractPostResponse
path
- path of the item that was modifiedpublic void onCreated(String path)
AbstractPostResponse
onCreated
in interface PostResponse
onCreated
in class AbstractPostResponse
path
- path of the item that was createdpublic void onDeleted(String path)
AbstractPostResponse
onDeleted
in interface PostResponse
onDeleted
in class AbstractPostResponse
path
- path of the item that was deletedpublic void onMoved(String srcPath, String dstPath)
AbstractPostResponse
onMoved
in interface PostResponse
onMoved
in class AbstractPostResponse
srcPath
- source path of the node that was moveddstPath
- destination path of the node that was moved.public void onCopied(String srcPath, String dstPath)
AbstractPostResponse
onCopied
in interface PostResponse
onCopied
in class AbstractPostResponse
srcPath
- source path of the node that was copieddstPath
- destination path of the node that was copied.public void onChange(String type, String... arguments)
PostResponse
type
with arguments.type
- The type of the modificationarguments
- The arguments to the modificationspublic void setDescription(String description)
public void setGeneralError(int code)
public void addRedirectLink(String href, String text)
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"