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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getAttribute(String name)
Returns a named attribute.Optional<String>
getFirstHeader(String name)
Convenience method for retrieving the first value of a named header field.List<String>
getHeaders(String name)
Returns an immutable view of all values of a named header field.Optional<HttpRequest.Method>
getMethod()
Returns the Http method.URI
getUri()
-
-
-
Method Detail
-
getAttribute
Object getAttribute(String name)
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
List<String> getHeaders(String name)
Returns an immutable view of all values of a named header field. Returns an empty list if no such header is present.
-
getFirstHeader
Optional<String> getFirstHeader(String name)
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()
-
-