Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.thetransactioncompany.cors;


Unsupported HTTP header exception. Thrown to indicate that a custom HTTP request header is not supported by the CORS policy.

Author(s):
Vladimir Dzhuvinov
 
public class UnsupportedHTTPHeaderException extends CORSException {


The HTTP header.
	private final String header;


Creates a new unsupported HTTP header exception with the specified message.

Parameters:
message The message.
	public UnsupportedHTTPHeaderException(final String message) {
		this(messagenull);
	}


Creates a new unsupported HTTP header exception with the specified message and request header.

Parameters:
message The message.
requestHeader The request HTTP header name, null if unknown.
	public UnsupportedHTTPHeaderException(final String messagefinal String requestHeader) {
		super(message);
		 = requestHeader;
	}


Gets the request header name.

Returns:
The request header name, null if unknown or not set.
	public String getRequestHeader() {
		return ;
	}
New to GrepCode? Check out our FAQ X