Interface ByMethodSpec

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ByMethodSpec delete​(java.lang.Class<? extends Handler> clazz)
      Inserts the handler to chain if the request has a HTTP method of DELETE.
      ByMethodSpec delete​(ratpack.func.Block block)
      Defines the action to to take if the request has a HTTP method of DELETE.
      ByMethodSpec delete​(Handler handler)
      Inserts the handler to chain if the request has a HTTP method of DELETE.
      ByMethodSpec get​(java.lang.Class<? extends Handler> clazz)
      Inserts the handler to chain if the request has a HTTP method of GET.
      ByMethodSpec get​(ratpack.func.Block block)
      Defines the action to to take if the request has a HTTP method of GET.
      ByMethodSpec get​(Handler handler)
      Inserts the handler to chain if the request has a HTTP method of GET.
      ByMethodSpec named​(java.lang.String methodName, java.lang.Class<? extends Handler> clazz)
      Inserts the handler to chain if the request has a HTTP method of methodName.
      ByMethodSpec named​(java.lang.String methodName, ratpack.func.Block block)
      Defines the action to to take if the request has a HTTP method of methodName.
      ByMethodSpec named​(java.lang.String methodName, Handler handler)
      Inserts the handler to chain if the request has a HTTP method of methodName.
      ByMethodSpec options​(java.lang.Class<? extends Handler> clazz)
      Inserts the handler to chain if the request has a HTTP method of OPTIONS.
      ByMethodSpec options​(ratpack.func.Block block)
      Defines the action to to take if the request has a HTTP method of OPTIONS.
      ByMethodSpec options​(Handler handler)
      Inserts the handler to chain if the request has a HTTP method of OPTIONS.
      ByMethodSpec patch​(java.lang.Class<? extends Handler> clazz)
      Inserts the handler to chain if the request has a HTTP method of PATCH.
      ByMethodSpec patch​(ratpack.func.Block block)
      Defines the action to to take if the request has a HTTP method of PATCH.
      ByMethodSpec patch​(Handler handler)
      Inserts the handler to chain if the request has a HTTP method of PATCH.
      ByMethodSpec post​(java.lang.Class<? extends Handler> clazz)
      Inserts the handler to chain if the request has a HTTP method of POST.
      ByMethodSpec post​(ratpack.func.Block block)
      Defines the action to to take if the request has a HTTP method of POST.
      ByMethodSpec post​(Handler handler)
      Inserts the handler to chain if the request has a HTTP method of POST.
      ByMethodSpec put​(java.lang.Class<? extends Handler> clazz)
      Inserts the handler to chain if the request has a HTTP method of PUT.
      ByMethodSpec put​(ratpack.func.Block block)
      Defines the action to to take if the request has a HTTP method of PUT.
      ByMethodSpec put​(Handler handler)
      Inserts the handler to chain if the request has a HTTP method of PUT.
    • Method Detail

      • get

        ByMethodSpec get​(ratpack.func.Block block)
        Defines the action to to take if the request has a HTTP method of GET.
        Parameters:
        block - the code to invoke if the request method matches
        Returns:
        this
      • get

        ByMethodSpec get​(java.lang.Class<? extends Handler> clazz)
        Inserts the handler to chain if the request has a HTTP method of GET.
        Parameters:
        clazz - a handler class
        Returns:
        this
        Since:
        1.5
      • get

        ByMethodSpec get​(Handler handler)
        Inserts the handler to chain if the request has a HTTP method of GET.
        Parameters:
        handler - the handler to delegate to
        Returns:
        this
        Since:
        1.5
      • post

        ByMethodSpec post​(ratpack.func.Block block)
        Defines the action to to take if the request has a HTTP method of POST.
        Parameters:
        block - the code to invoke if the request method matches
        Returns:
        this
      • post

        ByMethodSpec post​(java.lang.Class<? extends Handler> clazz)
        Inserts the handler to chain if the request has a HTTP method of POST.
        Parameters:
        clazz - a handler class
        Returns:
        this
        Since:
        1.5
      • post

        ByMethodSpec post​(Handler handler)
        Inserts the handler to chain if the request has a HTTP method of POST.
        Parameters:
        handler - the handler to delegate to
        Returns:
        this
        Since:
        1.5
      • put

        ByMethodSpec put​(ratpack.func.Block block)
        Defines the action to to take if the request has a HTTP method of PUT.
        Parameters:
        block - the code to invoke if the request method matches
        Returns:
        this
      • put

        ByMethodSpec put​(java.lang.Class<? extends Handler> clazz)
        Inserts the handler to chain if the request has a HTTP method of PUT.
        Parameters:
        clazz - a handler class
        Returns:
        this
        Since:
        1.5
      • put

        ByMethodSpec put​(Handler handler)
        Inserts the handler to chain if the request has a HTTP method of PUT.
        Parameters:
        handler - the handler to delegate to
        Returns:
        this
        Since:
        1.5
      • patch

        ByMethodSpec patch​(ratpack.func.Block block)
        Defines the action to to take if the request has a HTTP method of PATCH.
        Parameters:
        block - the code to invoke if the request method matches
        Returns:
        this
      • patch

        ByMethodSpec patch​(java.lang.Class<? extends Handler> clazz)
        Inserts the handler to chain if the request has a HTTP method of PATCH.
        Parameters:
        clazz - a handler class
        Returns:
        this
        Since:
        1.5
      • patch

        ByMethodSpec patch​(Handler handler)
        Inserts the handler to chain if the request has a HTTP method of PATCH.
        Parameters:
        handler - the handler to delegate to
        Returns:
        this
        Since:
        1.5
      • options

        ByMethodSpec options​(ratpack.func.Block block)
        Defines the action to to take if the request has a HTTP method of OPTIONS.
        Parameters:
        block - the code to invoke if the request method matches
        Returns:
        this
        Since:
        1.1
      • options

        ByMethodSpec options​(java.lang.Class<? extends Handler> clazz)
        Inserts the handler to chain if the request has a HTTP method of OPTIONS.
        Parameters:
        clazz - a handler class
        Returns:
        this
        Since:
        1.5
      • options

        ByMethodSpec options​(Handler handler)
        Inserts the handler to chain if the request has a HTTP method of OPTIONS.
        Parameters:
        handler - the handler to delegate to
        Returns:
        this
        Since:
        1.5
      • delete

        ByMethodSpec delete​(ratpack.func.Block block)
        Defines the action to to take if the request has a HTTP method of DELETE.
        Parameters:
        block - the code to invoke if the request method matches
        Returns:
        this
      • delete

        ByMethodSpec delete​(java.lang.Class<? extends Handler> clazz)
        Inserts the handler to chain if the request has a HTTP method of DELETE.
        Parameters:
        clazz - a handler class
        Returns:
        this
        Since:
        1.5
      • delete

        ByMethodSpec delete​(Handler handler)
        Inserts the handler to chain if the request has a HTTP method of DELETE.
        Parameters:
        handler - the handler to delegate to
        Returns:
        this
        Since:
        1.5
      • named

        ByMethodSpec named​(java.lang.String methodName,
                           ratpack.func.Block block)
        Defines the action to to take if the request has a HTTP method of methodName.

        The method name is case insensitive.

        Parameters:
        methodName - The HTTP method to map the given action to
        block - the code to invoke if the request method matches
        Returns:
        this
      • named

        ByMethodSpec named​(java.lang.String methodName,
                           java.lang.Class<? extends Handler> clazz)
        Inserts the handler to chain if the request has a HTTP method of methodName.

        The method name is case insensitive.

        Parameters:
        methodName - The HTTP method to map the given action to
        clazz - a handler class
        Returns:
        this
        Since:
        1.5
      • named

        ByMethodSpec named​(java.lang.String methodName,
                           Handler handler)
        Inserts the handler to chain if the request has a HTTP method of methodName.

        The method name is case insensitive.

        Parameters:
        methodName - The HTTP method to map the given action to
        handler - the handler to delegate to
        Returns:
        this
        Since:
        1.5