|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxava.web.servlets.Servlets
public class Servlets
Utilities to work with servlets.
| Constructor Summary | |
|---|---|
Servlets()
|
|
| Method Summary | |
|---|---|
static java.io.InputStream |
getURIAsStream(HttpServletRequest request,
HttpServletResponse response,
java.lang.String uri)
From a uri return the resource (dynamic or static) in InputStream format. |
static java.io.InputStream |
getURIAsStream(HttpServletRequest request,
HttpServletResponse response,
java.lang.String uri,
java.lang.String encoding)
From a uri return the resource (dynamic or static) in InputStream format. |
static java.lang.String |
getURIAsString(HttpServletRequest request,
HttpServletResponse response,
java.lang.String uri)
From a uri return the resource (dynamic or static) in String format. |
static void |
setCharacterEncoding(HttpServletRequest request,
HttpServletResponse response)
Try to set the system encoding as encoding for the request and response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Servlets()
| Method Detail |
|---|
public static void setCharacterEncoding(HttpServletRequest request,
HttpServletResponse response)
The system encoding is obtained from XSystem.getEncoding().
If fails a log messages is produced, but no exception is thrown.
public static java.io.InputStream getURIAsStream(HttpServletRequest request,
HttpServletResponse response,
java.lang.String uri)
throws ServletException,
java.io.IOException
Suitable for binary streams.
request - request of the current servletresponse - response of the current servlet. This method does not write to ituri - And uri, for example /mypage.jsp
java.io.IOException
ServletException
public static java.io.InputStream getURIAsStream(HttpServletRequest request,
HttpServletResponse response,
java.lang.String uri,
java.lang.String encoding)
throws ServletException,
java.io.IOException
Suitable for characters streams.
request - request of the current servletresponse - response of the current servlet. This method does not write to ituri - And uri, for example /mypage.jspencoding - Character encoding for the response
java.io.IOException
ServletException
public static java.lang.String getURIAsString(HttpServletRequest request,
HttpServletResponse response,
java.lang.String uri)
throws ServletException,
java.io.IOException
request - request of the current servletresponse - response of the current servlet. This method does not write to ituri - And uri, for example /mypage.jsp
java.io.IOException
ServletException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||