| java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.wings.session.WingServlet
Method Summary | |
protected Device | createOutputDevice(HttpServletRequest request, HttpServletResponse response, ExternalizedResource extInfo) create a Device that is used to deliver the content, that is
not session specific, i.e. | public void | doGet(HttpServletRequest req, HttpServletResponse response) | final public void | doPost(HttpServletRequest req, HttpServletResponse res) | protected AbstractExternalizeManager | getExternalizeManager(HttpServletRequest req) | protected long | getLastModified(HttpServletRequest request) returns the last modification of an externalized resource to allow the
browser to cache it. | final public SessionServlet | getSessionServlet(HttpServletRequest request, HttpServletResponse response, boolean createSessionServlet) | public void | init(ServletConfig config) The following init parameters are known by wings. | protected void | initLookupName(ServletConfig config) | public static void | installSession(HttpServletRequest req, HttpServletResponse res) | protected boolean | isSystemExternalizeRequest(HttpServletRequest request) returns, whether this request is to serve an externalize request. | public static void | uninstallSession() |
log | final protected static transient Log log(Code) | | |
WingServlet | public WingServlet()(Code) | | |
createOutputDevice | protected Device createOutputDevice(HttpServletRequest request, HttpServletResponse response, ExternalizedResource extInfo) throws IOException(Code) | | create a Device that is used to deliver the content, that is
not session specific, i.e. that is delivered by the SystemExternalizer.
The default
implementation just creates a ServletDevice. You can override this
method to decide yourself what happens to the output. You might, for
instance, write some device, that logs the output for debugging
purposes, or one that creates a gziped output stream to transfer
data more efficiently. You get the request and response as well as
the ExternalizedResource to decide, what kind of device you want to create.
You can rely on the fact, that extInfo is not null.
Further, you can rely on the fact, that noting has been written yet
to the output, so that you can set you own set of Headers.
Parameters: request - the HttpServletRequest that is answered Parameters: response - the HttpServletResponse. Parameters: extInfo - the externalized info of the resource about to bedelivered. |
getLastModified | protected long getLastModified(HttpServletRequest request)(Code) | | returns the last modification of an externalized resource to allow the
browser to cache it.
|
init | public void init(ServletConfig config) throws ServletException(Code) | | The following init parameters are known by wings.
- externalizer.timeout
- - The time, externalized objects
are kept, before they are removed
- content.maxlength
- - Maximum content lengt for form posts.
Remember to increase this, if you make use of the SFileChooser
component
- filechooser.uploaddir
- - The directory, where uploaded
files ar stored temporarily
wings.servlet.lookupname - The name the wings sessions of
this servlet instance are stored in the servlet session hashtable
throws: ServletException - |
isSystemExternalizeRequest | protected boolean isSystemExternalizeRequest(HttpServletRequest request)(Code) | | returns, whether this request is to serve an externalize request.
|
uninstallSession | public static void uninstallSession()(Code) | | |
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|