Package org.apache.sling.servlets.post

# Klasse HtmlResponse

java.lang.Object
org.apache.sling.servlets.post.AbstractPostResponse
org.apache.sling.servlets.post.HtmlResponse

Alle implementierten Schnittstellen:
  `PostResponse`

@Deprecated public class HtmlResponse extends AbstractPostResponse
Veraltet.
Use `JakartaHtmlResponse` instead.
The `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.

## Feldübersicht

### Von Klasse geerbte Felder 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`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`HtmlResponse()`
Veraltet.

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`protected void`
`doSend(javax.servlet.http.HttpServletResponse response)`
Veraltet.
Writes the response to the given writer and replaces all ${var} patterns by the value of the respective property. if the property is not defined the pattern is not modified.
`void`
`onChange(String type, String... arguments)`
Veraltet.
Records a generic change of the given `type`.

### Von Klasse geerbte Methoden org.apache.sling.servlets.post.AbstractPostResponse

`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, setTitle`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Konstruktordetails

### HtmlResponse

public HtmlResponse()
Veraltet.

## Methodendetails

### onChange

public void onChange(String type, String... arguments)
Veraltet.
Records a generic change of the given `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.

Parameter:
  `type` - The type of the modification
  `arguments` - The arguments to the modifications

### doSend

protected void doSend(javax.servlet.http.HttpServletResponse response) throws IOException
Veraltet.
Writes the response to the given writer and replaces all ${var} patterns by the value of the respective property. if the property is not defined the pattern is not modified.

Angegeben von:
  `doSend` in Klasse `AbstractPostResponse`
Parameter:
  `response` - to send to
Löst aus:
  `IOException` - if an i/o exception occurs