Package org.apache.juneau.http.header
Class Thrown
java.lang.Object
org.apache.juneau.http.header.BasicHeader
org.apache.juneau.http.header.BasicCsvHeader
org.apache.juneau.http.header.Thrown
- All Implemented Interfaces:
Serializable
,Cloneable
,Header
,NameValuePair
Represents a parsed Thrown HTTP response header.
Contains exception information including name and optionally a message.
Example
Thrown: org.apache.juneau.http.response.NotFound;Resource was not found
This header isn't part of the RFC2616 specification, but is provided to allow for Java exception information to be delivered to remote REST Java interfaces.
This header supports comma-delimited values for multiple thrown values.
Thrown: org.apache.juneau.http.response.NotFound;Resource was not found,java.lang.RuntimeException;foo
Note that this is equivalent to specifying multiple header values.
Thrown: org.apache.juneau.http.response.NotFound;Resource was not found Thrown: java.lang.RuntimeException;foo
See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a single entry in this header. -
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.juneau.http.header.BasicCsvHeader
asArray, asList, assertList, contains, containsIgnoreCase, getValue, of, of, of, orElse, toArray, toList
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
-
EMPTY
An empty unmodifiable Thrown header.
-
-
Constructor Details
-
Thrown
Constructor.- Parameters:
value
- The header value.
-
Thrown
Constructor.- Parameters:
value
- The header value.
-
-
Method Details
-
of
Static creator.- Parameters:
value
- The header value.
Can benull .- Returns:
- A new header bean, or
null if the value isnull .
-
of
Static creator.- Parameters:
values
- The header value.
Can benull .- Returns:
- A new header bean, or
null if the value isnull .
-
asParts
Returns the class name portion of the header.- Returns:
- The class name portion of the header, or
null if not there.
-