org.exist.http.servlets
Interface ResponseWrapper
- All Known Implementing Classes:
- CocoonResponseWrapper, HttpResponseWrapper
public interface ResponseWrapper
- Author:
- Wolfgang Meier (wolfgang@exist-db.org)
addCookie
void addCookie(String name,
String value)
- Parameters:
name
- Name of the Cookievalue
- Value of the Cookie
addCookie
void addCookie(String name,
String value,
int maxAge)
- Parameters:
name
- Name of the Cookievalue
- Value of the CookiemaxAge
- maxAge of the Cookie
addDateHeader
void addDateHeader(String arg0,
long arg1)
- Parameters:
arg0
- arg1
-
addHeader
void addHeader(String arg0,
String arg1)
- Parameters:
arg0
- arg1
-
addIntHeader
void addIntHeader(String arg0,
int arg1)
- Parameters:
arg0
- arg1
-
containsHeader
boolean containsHeader(String arg0)
- Parameters:
arg0
- The name of the header.
- Returns:
- A boolean value indicating whether it contains the header name.
encodeURL
String encodeURL(String arg0)
- Parameters:
arg0
-
- Returns:
- The encoded value
flushBuffer
void flushBuffer()
throws IOException
- Throws:
IOException
getCharacterEncoding
String getCharacterEncoding()
- Returns:
- Returns the default character encoding
getLocale
Locale getLocale()
- Returns:
- Returns the default locale
setDateHeader
void setDateHeader(String arg0,
long arg1)
- Parameters:
arg0
- arg1
-
setHeader
void setHeader(String arg0,
String arg1)
- Parameters:
arg0
- arg1
-
setIntHeader
void setIntHeader(String arg0,
int arg1)
- Parameters:
arg0
- arg1
-
setStatusCode
void setStatusCode(int arg0)
- Parameters:
arg0
-
setLocale
void setLocale(Locale arg0)
- Parameters:
arg0
-
sendRedirect
void sendRedirect(String arg0)
throws IOException
- Throws:
IOException
getDateHeader
long getDateHeader(String name)
- Returns:
- the value of Date Header corresponding to given name,
0 if none has been set.
getOutputStream
OutputStream getOutputStream()
throws IOException
- Throws:
IOException
Copyright (C) Wolfgang Meier. All rights reserved.