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
ConstructorsModifierConstructorDescriptionprotectedRestMethodImpl(RestMethod.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionEntity parameter (if defined).booleaninthashCode()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, producesMethods inherited from class io.helidon.declarative.codegen.model.http.ModelElement.BuilderBase.ModelElementImpl
annotations, typeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.declarative.codegen.model.http.HttpAnnotated
computedHeaders, consumes, headers, path, producesMethods 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:RestMethodHTTP Status (server side only) annotation on the method.- Specified by:
statusin interfaceRestMethod- Returns:
- status to return
-
returnType
Description copied from interface:RestMethodType returned by this method.- Specified by:
returnTypein interfaceRestMethod- Returns:
- return type of the method
-
name
Description copied from interface:RestMethodMethod name.- Specified by:
namein interfaceRestMethod- Returns:
- name of the method
-
uniqueName
Description copied from interface:RestMethodUnique 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:
uniqueNamein interfaceRestMethod- Returns:
- unique name of this method for generated code
-
httpMethod
Description copied from interface:RestMethodHTTP method of this method.- Specified by:
httpMethodin interfaceRestMethod- Returns:
- HTTP method
-
parameters
Description copied from interface:RestMethodAll parameters of this method.- Specified by:
parametersin interfaceRestMethod- Returns:
- method parameters
-
entityParameter
Description copied from interface:RestMethodEntity parameter (if defined).- Specified by:
entityParameterin interfaceRestMethod- Returns:
- method entity parameter
-
headerParameters
Description copied from interface:RestMethodHeader parameters (if defined).- Specified by:
headerParametersin interfaceRestMethod- Returns:
- header parameters
-
queryParameters
Description copied from interface:RestMethodQuery parameters (if defined).- Specified by:
queryParametersin interfaceRestMethod- Returns:
- query parameters
-
pathParameters
Description copied from interface:RestMethodPath parameters (if defined).- Specified by:
pathParametersin interfaceRestMethod- Returns:
- path parameters
-
method
Description copied from interface:RestMethodMethod element info.- Specified by:
methodin interfaceRestMethod- Returns:
- method element info
-
toString
- Overrides:
toStringin classHttpAnnotated.BuilderBase.HttpAnnotatedImpl
-
equals
- Overrides:
equalsin classHttpAnnotated.BuilderBase.HttpAnnotatedImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classHttpAnnotated.BuilderBase.HttpAnnotatedImpl
-
type
TypeInfo type()Owning type info.- Returns:
- type info
-