Package dev.openfunction.functions
Class Routable
- java.lang.Object
-
- dev.openfunction.functions.Routable
-
public abstract class Routable extends java.lang.Object
An object that can route the specified http request to the specified function.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMETHOD_DELETEstatic java.lang.StringMETHOD_GETstatic java.lang.StringMETHOD_HEADstatic java.lang.StringMETHOD_PATCHstatic java.lang.StringMETHOD_POSTstatic java.lang.StringMETHOD_PUT
-
Constructor Summary
Constructors Constructor Description Routable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getMethods()Get the supported http methods.java.lang.StringgetPath()Get the URI that will be routed.
-
-
-
Field Detail
-
METHOD_DELETE
public static final java.lang.String METHOD_DELETE
- See Also:
- Constant Field Values
-
METHOD_HEAD
public static final java.lang.String METHOD_HEAD
- See Also:
- Constant Field Values
-
METHOD_GET
public static final java.lang.String METHOD_GET
- See Also:
- Constant Field Values
-
METHOD_PATCH
public static final java.lang.String METHOD_PATCH
- See Also:
- Constant Field Values
-
METHOD_POST
public static final java.lang.String METHOD_POST
- See Also:
- Constant Field Values
-
METHOD_PUT
public static final java.lang.String METHOD_PUT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Routable
public Routable()
-
-
Method Detail
-
getMethods
public java.lang.String[] getMethods()
Get the supported http methods.- Returns:
- The supported http methods.
-
getPath
public java.lang.String getPath()
Get the URI that will be routed.- Returns:
- The URI that will be routed.
-
-