Package org.apache.juneau.http.header
Class Debug
java.lang.Object
org.apache.juneau.http.header.BasicHeader
org.apache.juneau.http.header.BasicBooleanHeader
org.apache.juneau.http.header.Debug
- All Implemented Interfaces:
Serializable
,Cloneable
,Header
,NameValuePair
Represents a parsed Debug HTTP request/response header.
Specifies to enable debug mode on the current request.
Example
Debug: true
Not part of the RFC2616 specification, but provided to allow for debugging of HTTP requests.
It's up to the server to decide whether to honor this header.
See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.juneau.http.header.BasicBooleanHeader
asBoolean, assertBoolean, getValue, isTrue, of, of, of, orElse, toBoolean
Methods inherited from class org.apache.juneau.http.header.BasicHeader
assertName, assertStringValue, asString, equals, equalsIgnoreCase, get, getElements, getName, hashCode, isNotEmpty, isPresent, of, of, orElse, toString
-
Field Details
-
TRUE
-
FALSE
-
-
Constructor Details
-
Debug
Constructor.- Parameters:
value
- The header value.
Must be parsable byBoolean.parseBoolean(String)
.
Can benull .
-
Debug
Constructor.- Parameters:
value
- The header value.
Can benull .
-
Debug
Constructor with delayed value.Header value is re-evaluated on each call to
BasicBooleanHeader.getValue()
.- Parameters:
value
- The supplier of the header value.
Can benull .
-
-
Method Details
-
of
Static creator.- Parameters:
value
- The header value.
Must be parsable byBoolean.parseBoolean(String)
.
Can benull .- Returns:
- A new header bean, or
null if the value wasnull .
-
of
Static creator.- Parameters:
value
- The header value.
Can benull .- Returns:
- A new header bean, or
null if the value wasnull .
-
of
Static creator with delayed value.Header value is re-evaluated on each call to
BasicBooleanHeader.getValue()
.- Parameters:
value
- The header value supplier.
Can benull .- Returns:
- A new header bean, or
null if the value wasnull .
-