public class MethodNotAllowedException extends BaseServerResponseException
Note that a complete list of RESTful exceptions is available in the Package Summary.
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_CODE |
| Constructor and Description |
|---|
MethodNotAllowedException(String theMessage)
Constructor
|
MethodNotAllowedException(String theMessage,
IBaseOperationOutcome theOperationOutcome)
Constructor
|
MethodNotAllowedException(String theMessage,
IBaseOperationOutcome theOperationOutcome,
RequestTypeEnum... theAllowedMethods)
Constructor
|
MethodNotAllowedException(String theMessage,
RequestTypeEnum... theAllowedMethods)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Set<RequestTypeEnum> |
getAllowedMethods()
Specifies the list of allowed HTTP methods (GET, POST, etc).
|
void |
setAllowedMethods(RequestTypeEnum... theAllowedMethods)
Specifies the list of allowed HTTP methods (GET, POST, etc).
|
void |
setAllowedMethods(Set<RequestTypeEnum> theAllowedMethods)
Specifies the list of allowed HTTP methods (GET, POST, etc).
|
addResponseHeader, getAdditionalMessages, getOperationOutcome, getResponseBody, getResponseHeaders, getResponseMimeType, getStatusCode, hasResponseHeaders, newInstance, setOperationOutcome, setResponseBody, setResponseMimeTypeaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final int STATUS_CODE
public MethodNotAllowedException(String theMessage, IBaseOperationOutcome theOperationOutcome, RequestTypeEnum... theAllowedMethods)
theMessage - The messagetheOperationOutcome - The OperationOutcome resource to return to the clienttheAllowedMethods - A list of allowed methods (see setAllowedMethods(RequestTypeEnum...) )public MethodNotAllowedException(String theMessage, RequestTypeEnum... theAllowedMethods)
theMessage - The messagetheAllowedMethods - A list of allowed methods (see setAllowedMethods(RequestTypeEnum...) )public MethodNotAllowedException(String theMessage, IBaseOperationOutcome theOperationOutcome)
theMessage - The messagetheOperationOutcome - The OperationOutcome resource to return to the clientpublic MethodNotAllowedException(String theMessage)
theMessage - The messagepublic Set<RequestTypeEnum> getAllowedMethods()
Allow header, as required by the HTTP specification (RFC 2616).public void setAllowedMethods(RequestTypeEnum... theAllowedMethods)
Allow header, as required by the HTTP specification (RFC 2616).public void setAllowedMethods(Set<RequestTypeEnum> theAllowedMethods)
Allow header, as required by the HTTP specification (RFC 2616).Copyright © 2014–2017 University Health Network. All rights reserved.