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
public class MethodNotAllowedException extends HttpException
When an unsupported HTTP method was used for a specific path- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MethodNotAllowedException(io.netty.handler.codec.http.HttpMethod method, String uri, Collection<io.netty.handler.codec.http.HttpMethod> allowedMethods)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<io.netty.handler.codec.http.HttpMethod>getAllowedMethods()io.netty.handler.codec.http.HttpResponseStatusgetStatus()-
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 Detail
-
MethodNotAllowedException
public MethodNotAllowedException(io.netty.handler.codec.http.HttpMethod method, String uri, Collection<io.netty.handler.codec.http.HttpMethod> allowedMethods)
-
-
Method Detail
-
getAllowedMethods
public List<io.netty.handler.codec.http.HttpMethod> getAllowedMethods()
-
getStatus
public io.netty.handler.codec.http.HttpResponseStatus getStatus()
- Specified by:
getStatusin classHttpException
-
-