Package org.gcube.smartgears.extensions
Class ApiMethodSignature
java.lang.Object
org.gcube.smartgears.extensions.ApiMethodSignature
Represents a method signature for API operations.
This class encapsulates HTTP method information along with accepted and produced content types.
- Author:
- Luca Frosini (ISTI-CNR)
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new API method signature with the specified HTTP method. -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the content types that this method accepts.Specifies the content types that this method produces.
-
Constructor Details
-
ApiMethodSignature
Creates a new API method signature with the specified HTTP method.- Parameters:
method- the HTTP method
-
-
Method Details
-
accepts
Specifies the content types that this method accepts.- Parameters:
types- the accepted content types- Returns:
- this signature for method chaining
-
produces
Specifies the content types that this method produces.- Parameters:
types- the produced content types- Returns:
- this signature for method chaining
-