|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.infolayer.templates.IlRequest
org.infolayer.servlet.RequestHandler
One-Way object that handles a single request. The purpose is to avoid the request and response parameters when calling subroutines.
| Field Summary | |
TemplateLoader |
loader
|
UmlModel |
model
|
HttpServletRequest |
request
|
HttpServletResponse |
response
Instead of direct access to the response, please use setResponseEncoding(), setContentType(), getOutputStream(), ... |
IlServlet |
servlet
|
| Constructor Summary | |
RequestHandler(IlServlet servlet,
HttpServletRequest request,
HttpServletResponse response)
|
|
| Method Summary | |
void |
doGet()
|
void |
doPost()
|
void |
error(java.lang.String id,
java.lang.String message)
Generate an error message |
java.lang.String |
getBasePath()
Starts with a slash, but does not end with a slash; for the root, this is the empty string (!) |
java.lang.String |
getCookie(java.lang.String name)
|
java.lang.String |
getHeader(java.lang.String name)
|
java.lang.String |
getHost()
|
java.lang.String |
getLang()
|
TemplateLoader |
getLoader()
|
UmlModel |
getModel()
|
IlUrl |
getNextUrl()
|
java.io.OutputStream |
getOutputStream()
|
java.lang.String |
getRequestEncoding()
Returns the character encoding probably used for the request. |
IlUrl |
getRequestUrl()
Returns the original, unmodified URL of the request |
java.lang.String |
getResponseEncoding()
|
IlUrl |
getUrl()
Returns the URL of the request with possible local property or mode changes (for example in the case of an include or form). |
XmlSerializer |
getXmlSerializer()
A special encoding can be forced using the encoding parameter. |
void |
preanlyzeData()
Performs a HTTP get by filling a template or transferring a file depending on the url and query fields of this object. |
void |
seeOther(IlUrl newUrl)
Redirects the browser to the stack top url |
void |
setContentType(java.lang.String contentType)
|
void |
setCookie(java.lang.String name,
java.lang.String value)
|
void |
setFollowup(java.lang.String followup)
|
void |
setResponseEncoding(java.lang.String enc)
|
void |
setUrl(IlUrl url)
|
void |
writeDir(java.io.File dir,
java.lang.String title)
|
void |
writeError(int code,
java.lang.String text,
java.lang.Exception exception)
|
| Methods inherited from class org.infolayer.templates.IlRequest |
getControl, getEnclose, getI18n, getId, getUrl, getUrl, setControl, setEnclose |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public IlServlet servlet
public TemplateLoader loader
public UmlModel model
public HttpServletRequest request
public HttpServletResponse response
| Constructor Detail |
public RequestHandler(IlServlet servlet,
HttpServletRequest request,
HttpServletResponse response)
| Method Detail |
public void error(java.lang.String id,
java.lang.String message)
public void setResponseEncoding(java.lang.String enc)
setResponseEncoding in class IlRequestpublic void setContentType(java.lang.String contentType)
setContentType in class IlRequest
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in class IlRequestjava.io.IOExceptionpublic java.lang.String getRequestEncoding()
getRequestEncoding in class IlRequest
public XmlSerializer getXmlSerializer()
throws java.io.IOException
getXmlSerializer in class IlRequestjava.io.IOExceptionpublic TemplateLoader getLoader()
getLoader in class IlRequestpublic UmlModel getModel()
getModel in class IlRequestpublic IlUrl getRequestUrl()
getRequestUrl in class IlRequestpublic IlUrl getUrl()
getUrl in class IlRequestpublic java.lang.String getHeader(java.lang.String name)
getHeader in class IlRequestpublic java.lang.String getLang()
getLang in class IlRequestpublic void setFollowup(java.lang.String followup)
public void preanlyzeData()
public void doGet()
throws java.io.IOException,
ServletException
java.io.IOException
ServletExceptionpublic java.lang.String getBasePath()
getBasePath in class IlRequestpublic void setUrl(IlUrl url)
setUrl in class IlRequest
public void setCookie(java.lang.String name,
java.lang.String value)
setCookie in class IlRequestpublic java.lang.String getCookie(java.lang.String name)
getCookie in class IlRequest
public void writeDir(java.io.File dir,
java.lang.String title)
throws XmlPullParserException,
java.io.IOException
XmlPullParserException
java.io.IOException
public void writeError(int code,
java.lang.String text,
java.lang.Exception exception)
throws java.io.IOException
java.io.IOException
public void doPost()
throws java.io.IOException,
ServletException
java.io.IOException
ServletException
public IlUrl getNextUrl()
throws java.io.IOException
java.io.IOException
public void seeOther(IlUrl newUrl)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getHost()
getHost in class IlRequestpublic java.lang.String getResponseEncoding()
getResponseEncoding in class IlRequest
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||