Class DownloadServlet.Context
- Enclosing class:
- DownloadServlet
This class provides information about the request that may be
necessary for the DownloadServlet.ContentSource to
provide content. The DownloadServlet is responsible
for supplying this object to the
DownloadServlet.ContentSource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) This method may be used to manage arbitrary information between theDownloadServletand theDownloadServlet.ContentSource.jakarta.servlet.ServletThis returns theServletassociated with the request.jakarta.servlet.ServletConfigThis returns theServletConfig.jakarta.servlet.ServletRequestThis returns theServletRequestassociated with the request.jakarta.servlet.ServletResponseThis 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.
-
Constructor Details
-
Context
public Context()The default constructor.
-
-
Method Details
-
getAttribute
This method may be used to manage arbitrary information between the
DownloadServletand theDownloadServlet.ContentSource. This method retrieves an attribute. -
setAttribute
This method may be used to manage arbitrary information between the
DownloadServletand theDownloadServlet.ContentSource. This method sets an attribute. -
removeAttribute
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.
-