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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classRepresents a single entry in this header.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.juneau.http.header.BasicCsvHeaderasArray, asList, assertList, contains, containsIgnoreCase, getValue, of, of, of, orElse, toArray, toListMethods inherited from class org.apache.juneau.http.header.BasicHeaderassertName, assertStringValue, asString, equals, equalsIgnoreCase, get, getElements, getName, hashCode, isNotEmpty, isPresent, of, of, orElse, toString
- 
Field Details- 
EMPTYAn empty unmodifiable Thrown header.
 
- 
- 
Constructor Details- 
ThrownConstructor.- Parameters:
- value- The header value.
 
- 
ThrownConstructor.- Parameters:
- value- The header value.
 
 
- 
- 
Method Details- 
ofStatic creator.- Parameters:
- value- The header value.
 Can be- null .
- Returns:
- A new header bean, or null if the value isnull .
 
- 
ofStatic creator.- Parameters:
- values- The header value.
 Can be- null .
- Returns:
- A new header bean, or null if the value isnull .
 
- 
asPartsReturns the class name portion of the header.- Returns:
- The class name portion of the header, or null if not there.
 
 
-