Class SiteMeshWebAppContext

java.lang.Object
com.opensymphony.sitemesh.webapp.SiteMeshWebAppContext
All Implemented Interfaces:
SiteMeshContext

public class SiteMeshWebAppContext extends Object implements SiteMeshContext
The Class SiteMeshWebAppContext.
Since:
SiteMesh 3
Author:
Joe Walnes
  • Constructor Details

    • SiteMeshWebAppContext

      public SiteMeshWebAppContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext)
      Instantiates a new site mesh web app context.
      Parameters:
      request - the request
      response - the response
      servletContext - the servlet context
  • Method Details

    • getRequest

      public javax.servlet.http.HttpServletRequest getRequest()
      Gets the request.
      Returns:
      the request
    • getResponse

      public javax.servlet.http.HttpServletResponse getResponse()
      Gets the response.
      Returns:
      the response
    • getServletContext

      public javax.servlet.ServletContext getServletContext()
      Gets the servlet context.
      Returns:
      the servlet context
    • isUsingStream

      public boolean isUsingStream()
      Checks if is using stream.
      Returns:
      true, if is using stream
    • setUsingStream

      public void setUsingStream(boolean isUsingStream)
      Sets the using stream.
      Parameters:
      isUsingStream - the new using stream
    • getContentType

      public String getContentType()
      Description copied from interface: SiteMeshContext
      Gets the content type.
      Specified by:
      getContentType in interface SiteMeshContext
      Returns:
      the content type
    • setContentType

      public void setContentType(String contentType)
      Description copied from interface: SiteMeshContext
      Sets the content type.
      Specified by:
      setContentType in interface SiteMeshContext
      Parameters:
      contentType - the new content type