Package com.yahoo.jdisc.http.filter
Interface RequestView
public interface RequestView
Read-only view of the request for use by SecurityResponseFilters.
- Author:
- Tony Vaagenes
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) Returns a named attribute.getFirstHeader
(String name) Convenience method for retrieving the first value of a named header field.getHeaders
(String name) Returns an immutable view of all values of a named header field.Returns the Http method.getUri()
-
Method Details
-
getAttribute
Returns a named attribute.- Returns:
- the named data associated with the request that are private to this runtime (not exposed to the client)
- See Also:
-
- javax.servlet.ServletRequest.getAttribute(java.lang.String)
Request.context()
-
getHeaders
Returns an immutable view of all values of a named header field. Returns an empty list if no such header is present. -
getFirstHeader
Convenience method for retrieving the first value of a named header field. Returns empty if the header is not set, or if the value list is empty. -
getMethod
Optional<HttpRequest.Method> getMethod()Returns the Http method. Only present if the underlying request has http-like semantics. -
getUri
URI getUri()
-