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 HttpAnnotated
HttpAnnotated.Builder, HttpAnnotated.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forHttpAnnotated.static classHttpAnnotated.BuilderBase<BUILDER extends HttpAnnotated.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HttpAnnotated>Fluent API builder base forHttpAnnotated.Nested classes/interfaces inherited from interface ModelElement
ModelElement.Builder, ModelElement.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forModelElement.static classModelElement.BuilderBase<BUILDER extends ModelElement.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends ModelElement>Fluent API builder base forModelElement.Nested classes/interfaces inherited from interface RestMethod
RestMethod.Builder, RestMethod.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forRestMethod.static classRestMethod.BuilderBase<BUILDER extends RestMethod.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends RestMethod>Fluent API builder base forRestMethod. -
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 HttpAnnotated.BuilderBase.HttpAnnotatedImpl
computedHeaders, consumes, headers, path, producesModifier and TypeMethodDescriptionList of computed header values.consumes()List of consumed media types (from server endpoint point of view).headers()List of configured header values.path()Path of the endpoint/method (optional).produces()List of produced media types (from server endpoint point of view).Methods inherited from class ModelElement.BuilderBase.ModelElementImpl
annotations, typeModifier and TypeMethodDescriptionAll annotations on this element, and inherited from supertype/interface and annotations.type()Type of this element.
-
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
-