public final class DefaultServletAssistant extends java.lang.Object implements ServletAssistant
ServletAssistant.| Constructor and Description |
|---|
DefaultServletAssistant(org.randombits.support.core.env.EnvironmentAssistant environmentAssistant) |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.user.User |
getCurrentUser() |
java.lang.String |
getFullPath(java.lang.String webappRelativePath)
Returns the full path, including the web application context path, if the
HttpServlet request is available.
|
com.opensymphony.webwork.dispatcher.multipart.MultiPartRequestWrapper |
getMultiPartRequest()
Returns the request as a
MultiPartRequestWrapper, if the current
request supports it. |
javax.servlet.http.HttpServletRequest |
getRequest() |
javax.servlet.http.HttpServletResponse |
getResponse()
Returns the current HttpServletResponse, if it's available.
|
javax.servlet.ServletConfig |
getServletConfig() |
javax.servlet.ServletContext |
getServletContext() |
javax.servlet.http.HttpSession |
getSession() |
public DefaultServletAssistant(org.randombits.support.core.env.EnvironmentAssistant environmentAssistant)
public com.atlassian.user.User getCurrentUser()
getCurrentUser in interface ServletAssistantpublic javax.servlet.http.HttpServletRequest getRequest()
getRequest in interface ServletAssistantpublic com.opensymphony.webwork.dispatcher.multipart.MultiPartRequestWrapper getMultiPartRequest()
MultiPartRequestWrapper, if the current
request supports it. Otherwise, null is returned.getMultiPartRequest in interface ServletAssistantnull.public javax.servlet.http.HttpServletResponse getResponse()
getResponse in interface ServletAssistantnull.public javax.servlet.ServletConfig getServletConfig()
getServletConfig in interface ServletAssistantpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface ServletAssistantpublic javax.servlet.http.HttpSession getSession()
getSession in interface ServletAssistantpublic java.lang.String getFullPath(java.lang.String webappRelativePath)
getFullPath in interface ServletAssistantwebappRelativePath - The path from the root of the web application.Copyright © 2013 randombits.org. All Rights Reserved.