public class HtmlResponse extends AbstractPostResponse
HtmlResponse is an AbstractPostResponse 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.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() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doSend(javax.servlet.http.HttpServletResponse response)
Writes the response to the given writer and replaces all ${var} patterns
by the value of the respective property.
|
void |
onChange(java.lang.String type,
java.lang.String... arguments)
Records a generic change of the given
type. |
getError, getLocation, getParentLocation, getPath, getProperty, getProperty, getReferer, getStatusCode, getStatusMessage, isCreateRequest, isSafeReferer, isSuccessful, onCopied, onCreated, onDeleted, onModified, onMoved, send, setCreateRequest, setError, setLocation, setParentLocation, setPath, setProperty, setReferer, setStatus, setTitlepublic void onChange(java.lang.String type,
java.lang.String... arguments)
type.
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 the
arguments are the string arguments to the method enclosed in
double quotes. For example, the the call
onChange("sameple", "arg1", "arg2");
is aded as
sample("arg1", "arg2")
to the internal list of changes.type - The type of the modificationarguments - The arguments to the modificationsprotected void doSend(javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
doSend in class AbstractPostResponseresponse - to send tojava.io.IOException - if an i/o exception occursCopyright © 2018 The Apache Software Foundation. All rights reserved.