Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.thetransactioncompany.cors;


Unsupported HTTP method exception.

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


The requested HTTP method.
	private final String method;


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

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


Creates a new unsupported HTTP method exception with the specified message and requested method.

Parameters:
message The message.
requestedMethod The requested HTTP method, null if unknown.
	public UnsupportedHTTPMethodException(final String messagefinal String requestedMethod) {
		super(message);
		 = requestedMethod;
	}


Gets the requested method.

Returns:
The requested method, null if unknown or not set.
		return ;
	}
New to GrepCode? Check out our FAQ X