org.zkoss.web.servlet.xel
Interface RequestContext

All Known Subinterfaces:
DspContext
All Known Implementing Classes:
ExtendletDspContext, ServletDspContext

public interface RequestContext

The context used to simplify the signatures of XEL function.

It is designed to make the signature of XEL functions (see ServletFns) simpler. For example, ServletFns.isExplorer() requires no argument, since it assumes the current context can be retrieved from RequestContexts.getCurrent().

Since:
3.0.0
Author:
tomyeh

Method Summary
 java.io.Writer getOut()
          Returns the writer, never null.
 javax.servlet.ServletRequest getRequest()
          Returns the request, or null if not available.
 javax.servlet.ServletResponse getResponse()
          Returns the response, or null if not available.
 javax.servlet.ServletContext getServletContext()
          Returns the request, or null if not available.
 VariableResolver getVariableResolver()
          Returns the variable resolver.
 

Method Detail

getOut

java.io.Writer getOut()
                      throws java.io.IOException
Returns the writer, never null.

Throws:
java.io.IOException

getRequest

javax.servlet.ServletRequest getRequest()
Returns the request, or null if not available.


getResponse

javax.servlet.ServletResponse getResponse()
Returns the response, or null if not available.


getServletContext

javax.servlet.ServletContext getServletContext()
Returns the request, or null if not available.


getVariableResolver

VariableResolver getVariableResolver()
Returns the variable resolver.



Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo