Class MethodNotAllowedException

All Implemented Interfaces:
Serializable

public class MethodNotAllowedException extends HttpException
When an unsupported HTTP method was used for a specific path
See Also:
  • 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

      public List<io.netty.handler.codec.http.HttpMethod> getAllowedMethods()
    • getStatus

      public io.netty.handler.codec.http.HttpResponseStatus getStatus()
      Specified by:
      getStatus in class HttpException