
Package ca.uhn.fhir.rest.api.server
Interface IHasServletAttributes
- All Known Implementing Classes:
ServletRequestDetails
,ServletSubRequestDetails
public interface IHasServletAttributes
-
Method Summary
Modifier and TypeMethodDescriptiongetServletAttribute
(String theAttributeName) Gets an attribute from the servlet request.void
setServletAttribute
(String theAttributeName, Object theAttributeValue) Sets an attribute on the servlet request.
-
Method Details
-
getServletAttribute
Gets an attribute from the servlet request. Attributes are used for interacting with servlet request attributes to communicate between servlet filters. These methods should not be used to pass information between interceptor methods. UseRequestDetails.getUserData()
instead to pass information between interceptor methods.- Parameters:
theAttributeName
- The attribute name- Returns:
- The attribute value, or null if the attribute is not set
-
setServletAttribute
Sets an attribute on the servlet request. Attributes are used for interacting with servlet request attributes to communicate between servlet filters. These methods should not be used to pass information between interceptor methods. UseRequestDetails.getUserData()
instead to pass information between interceptor methods.- Parameters:
theAttributeName
- The attribute nametheAttributeValue
- The attribute value
-