Package com.opensymphony.sitemesh.webapp
Class SiteMeshWebAppContext
java.lang.Object
com.opensymphony.sitemesh.webapp.SiteMeshWebAppContext
- All Implemented Interfaces:
SiteMeshContext
The Class SiteMeshWebAppContext.
- Since:
- SiteMesh 3
- Author:
- Joe Walnes
-
Constructor Summary
ConstructorsConstructorDescriptionSiteMeshWebAppContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext) Instantiates a new site mesh web app context. -
Method Summary
Modifier and TypeMethodDescriptionGets the content type.javax.servlet.http.HttpServletRequestGets the request.javax.servlet.http.HttpServletResponseGets the response.javax.servlet.ServletContextGets the servlet context.booleanChecks if is using stream.voidsetContentType(String contentType) Sets the content type.voidsetUsingStream(boolean isUsingStream) Sets the using stream.
-
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 requestresponse- the responseservletContext- 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
Description copied from interface:SiteMeshContextGets the content type.- Specified by:
getContentTypein interfaceSiteMeshContext- Returns:
- the content type
-
setContentType
Description copied from interface:SiteMeshContextSets the content type.- Specified by:
setContentTypein interfaceSiteMeshContext- Parameters:
contentType- the new content type
-