Class DownloadServlet.Context
- java.lang.Object
-
- org.glassfish.admingui.common.servlet.DownloadServlet.Context
-
- Enclosing class:
- DownloadServlet
public static class DownloadServlet.Context extends Object
This class provides information about the request that may be necessary for the
DownloadServlet.ContentSourceto provide content. TheDownloadServletis responsible for supplying this object to theDownloadServlet.ContentSource.
-
-
Constructor Summary
Constructors Constructor Description Context()The default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAttribute(String name)This method may be used to manage arbitrary information between theDownloadServletand theDownloadServlet.ContentSource.jakarta.servlet.ServletgetServlet()This returns theServletassociated with the request.jakarta.servlet.ServletConfiggetServletConfig()This returns theServletConfig.jakarta.servlet.ServletRequestgetServletRequest()This returns theServletRequestassociated with the request.jakarta.servlet.ServletResponsegetServletResponse()This returns theServletResponseassociated with the request.voidremoveAttribute(String name)This method may be used to manage arbitrary information between theDownloadServletand theDownloadServlet.ContentSource.voidsetAttribute(String name, Object value)This method may be used to manage arbitrary information between theDownloadServletand theDownloadServlet.ContentSource.protected voidsetServlet(jakarta.servlet.Servlet servlet)This sets theServletassociated with the request.protected voidsetServletConfig(jakarta.servlet.ServletConfig config)This sets theServletConfig.protected voidsetServletRequest(jakarta.servlet.ServletRequest request)This sets theServletRequestassociated with the request.protected voidsetServletResponse(jakarta.servlet.ServletResponse response)This sets theServletResponseassociated with the request.
-
-
-
Method Detail
-
getAttribute
public Object getAttribute(String name)
This method may be used to manage arbitrary information between the
DownloadServletand theDownloadServlet.ContentSource. This method retrieves an attribute.
-
setAttribute
public void setAttribute(String name, Object value)
This method may be used to manage arbitrary information between the
DownloadServletand theDownloadServlet.ContentSource. This method sets an attribute.
-
removeAttribute
public void removeAttribute(String name)
This method may be used to manage arbitrary information between the
DownloadServletand theDownloadServlet.ContentSource. This method removes an attribute.
-
getServlet
public jakarta.servlet.Servlet getServlet()
This returns the
Servletassociated with the request. This may be cast to the specificServletinstance, such asHttpServlet.
-
setServlet
protected void setServlet(jakarta.servlet.Servlet servlet)
This sets the
Servletassociated with the request.
-
getServletConfig
public jakarta.servlet.ServletConfig getServletConfig()
This returns the
ServletConfig.
-
setServletConfig
protected void setServletConfig(jakarta.servlet.ServletConfig config)
This sets the
ServletConfig.
-
getServletRequest
public jakarta.servlet.ServletRequest getServletRequest()
This returns the
ServletRequestassociated with the request. This may be cast to the specific type, such asHttpServletRequest.
-
setServletRequest
protected void setServletRequest(jakarta.servlet.ServletRequest request)
This sets the
ServletRequestassociated with the request.
-
getServletResponse
public jakarta.servlet.ServletResponse getServletResponse()
This returns the
ServletResponseassociated with the request. This may be cast to the specific type, such asHttpServletResponse.
-
setServletResponse
protected void setServletResponse(jakarta.servlet.ServletResponse response)
This sets the
ServletResponseassociated with the request.
-
-