Class Debug
java.lang.Object
org.apache.juneau.http.classic.header.BasicHeader
org.apache.juneau.http.classic.header.BasicBooleanHeader
org.apache.juneau.http.classic.header.Debug
- All Implemented Interfaces:
Serializable,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
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.juneau.http.classic.header.BasicBooleanHeader
asBoolean, assertBoolean, getValue, isTrue, of, of, of, orElse, toBooleanMethods inherited from class org.apache.juneau.http.classic.header.BasicHeader
assertName, assertStringValue, asString, copy, equals, equalsIgnoreCase, get, getElements, getName, hashCode, isNotEmpty, isPresent, of, of, orElse, toString
-
Field Details
-
TRUE
Constant fortrue value. -
FALSE
Constant forfalse value.
-
-
Constructor Details
-
Debug
Constructor.- Parameters:
value- The header value.
Can benull to create a header with no value.
-
Debug
Constructor.- Parameters:
value- The header value.
Must be parsable byBoolean.parseBoolean(String).
Can benull to create a header with no value.
-
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 to create a header with no value.
-
-
Method Details
-
of
Static creator.- Parameters:
value- The header value.
Can benull .- Returns:
- A new header bean, or
null if the value wasnull .
-
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 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 .
-