|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xins.common.servlet.container.XINSServletResponse
This class is an implementation of the HttpServletResponse that can be invoked locally.
Field Summary |
Constructor Summary | |
XINSServletResponse()
Creates a new instance of XINSServletResponse . |
Method Summary | |
void |
addCookie(Cookie cookie)
|
void |
addDateHeader(String str,
long param)
|
void |
addHeader(String str,
String str1)
|
void |
addIntHeader(String str,
int param)
|
boolean |
containsHeader(String str)
|
String |
encodeRedirectUrl(String str)
|
String |
encodeRedirectURL(String str)
|
String |
encodeUrl(String url)
|
String |
encodeURL(String url)
|
void |
flushBuffer()
|
int |
getBufferSize()
|
String |
getCharacterEncoding()
|
String |
getContentType()
Gets the type of the returned content. |
PropertyReader |
getHeaders()
Gets the headers to return to the client. |
Locale |
getLocale()
|
ServletOutputStream |
getOutputStream()
|
String |
getResult()
Gets the returned message from the servlet. |
int |
getStatus()
Gets the status of the returned message. |
PrintWriter |
getWriter()
|
boolean |
isCommitted()
|
void |
reset()
|
void |
resetBuffer()
|
void |
sendError(int sc)
|
void |
sendError(int sc,
String msg)
|
void |
sendRedirect(String location)
|
void |
setBufferSize(int param)
|
void |
setContentLength(int param)
|
void |
setContentType(String type)
Sets the content type. |
void |
setDateHeader(String str,
long param)
|
void |
setHeader(String str,
String str1)
|
void |
setIntHeader(String str,
int param)
|
void |
setLocale(Locale locale)
|
void |
setStatus(int sc)
|
void |
setStatus(int param,
String str)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XINSServletResponse()
XINSServletResponse
.
Method Detail |
public void addDateHeader(String str, long param)
addDateHeader
in interface HttpServletResponse
public void setDateHeader(String str, long param)
setDateHeader
in interface HttpServletResponse
public String encodeUrl(String url)
encodeUrl
in interface HttpServletResponse
public String encodeURL(String url)
encodeURL
in interface HttpServletResponse
public String encodeRedirectUrl(String str)
encodeRedirectUrl
in interface HttpServletResponse
public String encodeRedirectURL(String str)
encodeRedirectURL
in interface HttpServletResponse
public boolean containsHeader(String str)
containsHeader
in interface HttpServletResponse
public void sendRedirect(String location)
sendRedirect
in interface HttpServletResponse
public void setContentType(String type) throws IllegalArgumentException
setContentType
in interface ServletResponse
type
- the content type, cannot be null
.
IllegalArgumentException
- if type == null
.public void setStatus(int sc)
setStatus
in interface HttpServletResponse
public void sendError(int sc)
sendError
in interface HttpServletResponse
public void setBufferSize(int param)
setBufferSize
in interface ServletResponse
public void setContentLength(int param)
setContentLength
in interface ServletResponse
public void addCookie(Cookie cookie)
addCookie
in interface HttpServletResponse
public void setLocale(Locale locale)
setLocale
in interface ServletResponse
public void setStatus(int param, String str)
setStatus
in interface HttpServletResponse
public void setIntHeader(String str, int param)
setIntHeader
in interface HttpServletResponse
public void addIntHeader(String str, int param)
addIntHeader
in interface HttpServletResponse
public void sendError(int sc, String msg)
sendError
in interface HttpServletResponse
public void setHeader(String str, String str1)
setHeader
in interface HttpServletResponse
public Locale getLocale()
getLocale
in interface ServletResponse
public String getCharacterEncoding()
getCharacterEncoding
in interface ServletResponse
public int getBufferSize()
getBufferSize
in interface ServletResponse
public void flushBuffer()
flushBuffer
in interface ServletResponse
public void addHeader(String str, String str1)
addHeader
in interface HttpServletResponse
public ServletOutputStream getOutputStream()
getOutputStream
in interface ServletResponse
public PrintWriter getWriter()
getWriter
in interface ServletResponse
public boolean isCommitted()
isCommitted
in interface ServletResponse
public void reset()
reset
in interface ServletResponse
public void resetBuffer()
resetBuffer
in interface ServletResponse
public String getResult()
null
if no message is returned.public int getStatus()
public String getContentType()
null
.setContentType(String)
public PropertyReader getHeaders()
null
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |