|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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 HttpServletResponsepublic String encodeUrl(String url)
encodeUrl in interface HttpServletResponsepublic String encodeURL(String url)
encodeURL in interface HttpServletResponsepublic String encodeRedirectUrl(String str)
encodeRedirectUrl in interface HttpServletResponsepublic String encodeRedirectURL(String str)
encodeRedirectURL in interface HttpServletResponsepublic boolean containsHeader(String str)
containsHeader in interface HttpServletResponsepublic void sendRedirect(String location)
sendRedirect in interface HttpServletResponse
public void setContentType(String type)
throws IllegalArgumentException
setContentType in interface ServletResponsetype - the content type, cannot be null.
IllegalArgumentException - if type == null.public void setStatus(int sc)
setStatus in interface HttpServletResponsepublic void sendError(int sc)
sendError in interface HttpServletResponsepublic void setBufferSize(int param)
setBufferSize in interface ServletResponsepublic void setContentLength(int param)
setContentLength in interface ServletResponsepublic void addCookie(Cookie cookie)
addCookie in interface HttpServletResponsepublic 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 HttpServletResponsepublic Locale getLocale()
getLocale in interface ServletResponsepublic String getCharacterEncoding()
getCharacterEncoding in interface ServletResponsepublic int getBufferSize()
getBufferSize in interface ServletResponsepublic void flushBuffer()
flushBuffer in interface ServletResponse
public void addHeader(String str,
String str1)
addHeader in interface HttpServletResponsepublic ServletOutputStream getOutputStream()
getOutputStream in interface ServletResponsepublic PrintWriter getWriter()
getWriter in interface ServletResponsepublic boolean isCommitted()
isCommitted in interface ServletResponsepublic void reset()
reset in interface ServletResponsepublic void resetBuffer()
resetBuffer in interface ServletResponsepublic 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 | ||||||||||