## org.exist.http.servlets
Class HttpResponseWrapper

    java.lang.Object
      org.exist.http.servlets.HttpResponseWrapper

All Implemented Interfaces:
  ResponseWrapper

public class HttpResponseWrapper
extends java.lang.Object
implements ResponseWrapper

Author:
  Wolfgang Meier (wolfgang@exist-db.org)

Constructor Summary
`HttpResponseWrapper(javax.servlet.http.HttpServletResponse response)`

Method Summary
`void` `addCookie(java.lang.String name, java.lang.String value)`
`void` `addDateHeader(java.lang.String arg0, long arg1)`
`void` `addHeader(java.lang.String arg0, java.lang.String arg1)`
`void` `addIntHeader(java.lang.String arg0, int arg1)`
`boolean` `containsHeader(java.lang.String arg0)`
`java.lang.String` `encodeURL(java.lang.String arg0)`
`void` `flushBuffer()`
`java.lang.String` `getCharacterEncoding()`
`long` `getDateHeader(java.lang.String name)`
`java.util.Locale` `getLocale()`
`java.io.OutputStream` `getOutputStream()`
`void` `sendRedirect(java.lang.String arg0)`
`void` `setDateHeader(java.lang.String name, long arg1)`
`void` `setHeader(java.lang.String arg0, java.lang.String arg1)`
`void` `setIntHeader(java.lang.String arg0, int arg1)`
`void` `setLocale(java.util.Locale arg0)`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### HttpResponseWrapper

    public HttpResponseWrapper(javax.servlet.http.HttpServletResponse response)

Method Detail

### addCookie

    public void addCookie(java.lang.String name,
                          java.lang.String value)

  Specified by:
    `addCookie` in interface `ResponseWrapper`
  Parameters:
    `name` - Name of the Cookie
    `value` - Value of the Cookie

### addDateHeader

    public void addDateHeader(java.lang.String arg0,
                              long arg1)

  Specified by:
    `addDateHeader` in interface `ResponseWrapper`
  Parameters:
    `arg0` -
    `arg1` -

### addHeader

    public void addHeader(java.lang.String arg0,
                          java.lang.String arg1)

  Specified by:
    `addHeader` in interface `ResponseWrapper`
  Parameters:
    `arg0` -
    `arg1` -

### addIntHeader

    public void addIntHeader(java.lang.String arg0,
                             int arg1)

  Specified by:
    `addIntHeader` in interface `ResponseWrapper`
  Parameters:
    `arg0` -
    `arg1` -

### containsHeader

    public boolean containsHeader(java.lang.String arg0)

  Specified by:
    `containsHeader` in interface `ResponseWrapper`
  Parameters:
    `arg0` -
  Returns:
    a boolean indicating whether the header is present

### encodeURL

    public java.lang.String encodeURL(java.lang.String arg0)

  Specified by:
    `encodeURL` in interface `ResponseWrapper`
  Parameters:
    `arg0` -
  Returns:
    the encoded value

### flushBuffer

    public void flushBuffer()
                     throws java.io.IOException

  Specified by:
    `flushBuffer` in interface `ResponseWrapper`
  Throws:
    `java.io.IOException`

### getCharacterEncoding

    public java.lang.String getCharacterEncoding()

  Specified by:
    `getCharacterEncoding` in interface `ResponseWrapper`
  Returns:
    returns the default character encoding

### getLocale

    public java.util.Locale getLocale()

  Specified by:
    `getLocale` in interface `ResponseWrapper`
  Returns:
    returns the locale

### sendRedirect

    public void sendRedirect(java.lang.String arg0)
                      throws java.io.IOException

  Specified by:
    `sendRedirect` in interface `ResponseWrapper`
  Parameters:
    `arg0` -
  Throws:
    `java.io.IOException`

### setDateHeader

    public void setDateHeader(java.lang.String name,
                              long arg1)

  Specified by:
    `setDateHeader` in interface `ResponseWrapper`
  Parameters:
    `name` -
    `arg1` -

### getDateHeader

    public long getDateHeader(java.lang.String name)

  Specified by:
    `getDateHeader` in interface `ResponseWrapper`
  Returns:
    the value of Date Header corresponding to given name, 0 if none has been set.

### setHeader

    public void setHeader(java.lang.String arg0,
                          java.lang.String arg1)

  Specified by:
    `setHeader` in interface `ResponseWrapper`
  Parameters:
    `arg0` -
    `arg1` -

### setIntHeader

    public void setIntHeader(java.lang.String arg0,
                             int arg1)

  Specified by:
    `setIntHeader` in interface `ResponseWrapper`
  Parameters:
    `arg0` -
    `arg1` -

### setLocale

    public void setLocale(java.util.Locale arg0)

  Specified by:
    `setLocale` in interface `ResponseWrapper`
  Parameters:
    `arg0` -

### getOutputStream

    public java.io.OutputStream getOutputStream()
                                         throws java.io.IOException

  Specified by:
    `getOutputStream` in interface `ResponseWrapper`
  Throws:
    `java.io.IOException`

Copyright (C) Wolfgang Meier. All rights reserved.