Class RestMethod.BuilderBase.RestMethodImpl
java.lang.Object
io.helidon.declarative.codegen.model.http.ModelElement.BuilderBase.ModelElementImpl
io.helidon.declarative.codegen.model.http.HttpAnnotated.BuilderBase.HttpAnnotatedImpl
io.helidon.declarative.codegen.model.http.RestMethod.BuilderBase.RestMethodImpl
- All Implemented Interfaces:
Prototype.Api
,HttpAnnotated
,ModelElement
,RestMethod
- Enclosing class:
RestMethod.BuilderBase<BUILDER extends RestMethod.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends RestMethod>
protected static class RestMethod.BuilderBase.RestMethodImpl
extends HttpAnnotated.BuilderBase.HttpAnnotatedImpl
implements RestMethod
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.declarative.codegen.model.http.HttpAnnotated
HttpAnnotated.Builder, HttpAnnotated.BuilderBase<BUILDER extends HttpAnnotated.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends HttpAnnotated> Nested classes/interfaces inherited from interface io.helidon.declarative.codegen.model.http.ModelElement
ModelElement.Builder, ModelElement.BuilderBase<BUILDER extends ModelElement.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ModelElement> Nested classes/interfaces inherited from interface io.helidon.declarative.codegen.model.http.RestMethod
RestMethod.Builder, RestMethod.BuilderBase<BUILDER extends RestMethod.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends RestMethod> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RestMethodImpl
(RestMethod.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionEntity parameter (if defined).boolean
int
hashCode()
Header parameters (if defined).HTTP method of this method.method()
Method element info.name()
Method name.All parameters of this method.Path parameters (if defined).Query parameters (if defined).Type returned by this method.status()
HTTP Status (server side only) annotation on the method.toString()
type()
Owning type info.Unique name of the method (used for generated code).Methods inherited from class io.helidon.declarative.codegen.model.http.HttpAnnotated.BuilderBase.HttpAnnotatedImpl
computedHeaders, consumes, headers, path, produces
Methods inherited from class io.helidon.declarative.codegen.model.http.ModelElement.BuilderBase.ModelElementImpl
annotations, type
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.declarative.codegen.model.http.HttpAnnotated
computedHeaders, consumes, headers, path, produces
Methods inherited from interface io.helidon.declarative.codegen.model.http.ModelElement
annotations, type
-
Constructor Details
-
RestMethodImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
status
Description copied from interface:RestMethod
HTTP Status (server side only) annotation on the method.- Specified by:
status
in interfaceRestMethod
- Returns:
- status to return
-
returnType
Description copied from interface:RestMethod
Type returned by this method.- Specified by:
returnType
in interfaceRestMethod
- Returns:
- return type of the method
-
name
Description copied from interface:RestMethod
Method name.- Specified by:
name
in interfaceRestMethod
- Returns:
- name of the method
-
uniqueName
Description copied from interface:RestMethod
Unique name of the method (used for generated code). If there is more than one method with the same name within a type, the second (and further) methods will have an index based unique name generated.- Specified by:
uniqueName
in interfaceRestMethod
- Returns:
- unique name of this method for generated code
-
httpMethod
Description copied from interface:RestMethod
HTTP method of this method.- Specified by:
httpMethod
in interfaceRestMethod
- Returns:
- HTTP method
-
parameters
Description copied from interface:RestMethod
All parameters of this method.- Specified by:
parameters
in interfaceRestMethod
- Returns:
- method parameters
-
entityParameter
Description copied from interface:RestMethod
Entity parameter (if defined).- Specified by:
entityParameter
in interfaceRestMethod
- Returns:
- method entity parameter
-
headerParameters
Description copied from interface:RestMethod
Header parameters (if defined).- Specified by:
headerParameters
in interfaceRestMethod
- Returns:
- header parameters
-
queryParameters
Description copied from interface:RestMethod
Query parameters (if defined).- Specified by:
queryParameters
in interfaceRestMethod
- Returns:
- query parameters
-
pathParameters
Description copied from interface:RestMethod
Path parameters (if defined).- Specified by:
pathParameters
in interfaceRestMethod
- Returns:
- path parameters
-
method
Description copied from interface:RestMethod
Method element info.- Specified by:
method
in interfaceRestMethod
- Returns:
- method element info
-
toString
- Overrides:
toString
in classHttpAnnotated.BuilderBase.HttpAnnotatedImpl
-
equals
- Overrides:
equals
in classHttpAnnotated.BuilderBase.HttpAnnotatedImpl
-
hashCode
public int hashCode()- Overrides:
hashCode
in classHttpAnnotated.BuilderBase.HttpAnnotatedImpl
-
type
TypeInfo type()Owning type info.- Returns:
- type info
-