Package org.yamcs.http
Class MethodNotAllowedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.yamcs.http.HttpException
org.yamcs.http.MethodNotAllowedException
- All Implemented Interfaces:
Serializable
When an unsupported HTTP method was used for a specific path
- See Also:
-
Constructor Summary
ConstructorDescriptionMethodNotAllowedException
(io.netty.handler.codec.http.HttpMethod method, String uri, io.netty.handler.codec.http.HttpMethod... allowedMethods) MethodNotAllowedException
(io.netty.handler.codec.http.HttpMethod method, String uri, Collection<io.netty.handler.codec.http.HttpMethod> allowedMethods) MethodNotAllowedException
(HandlerContext ctx, io.netty.handler.codec.http.HttpMethod... method) -
Method Summary
Modifier and TypeMethodDescriptionList<io.netty.handler.codec.http.HttpMethod>
io.netty.handler.codec.http.HttpResponseStatus
Methods inherited from class org.yamcs.http.HttpException
getDetail, isServerError, setDetail, toMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MethodNotAllowedException
public MethodNotAllowedException(io.netty.handler.codec.http.HttpMethod method, String uri, Collection<io.netty.handler.codec.http.HttpMethod> allowedMethods) -
MethodNotAllowedException
public MethodNotAllowedException(io.netty.handler.codec.http.HttpMethod method, String uri, io.netty.handler.codec.http.HttpMethod... allowedMethods) -
MethodNotAllowedException
public MethodNotAllowedException(HandlerContext ctx, io.netty.handler.codec.http.HttpMethod... method)
-
-
Method Details
-
getAllowedMethods
-
getStatus
public io.netty.handler.codec.http.HttpResponseStatus getStatus()- Specified by:
getStatus
in classHttpException
-