Record Class ApiDocEndpoint
java.lang.Object
java.lang.Record
io.fluxzero.sdk.web.ApiDocEndpoint
public record ApiDocEndpoint(Class<?> handlerType, Executable executable, String origin, String path, String method, boolean autoHead, boolean autoOptions, ApiDocDetails documentation, List<ApiDocParameter> parameters, List<ApiDocRequestBody> requestBodies, Type responseType, List<ApiDocResponseDescriptor> responses)
extends Record
Describes a single extracted web API endpoint.
-
Constructor Summary
ConstructorsConstructorDescriptionApiDocEndpoint(Class<?> handlerType, Executable executable, String origin, String path, String method, boolean autoHead, boolean autoOptions, ApiDocDetails documentation, List<ApiDocParameter> parameters, List<ApiDocRequestBody> requestBodies, Type responseType, List<ApiDocResponseDescriptor> responses) Creates an instance of aApiDocEndpointrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanautoHead()Returns the value of theautoHeadrecord component.booleanReturns the value of theautoOptionsrecord component.Returns the value of thedocumentationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutablerecord component.Class<?> Returns the value of thehandlerTyperecord component.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.origin()Returns the value of theoriginrecord component.Returns the value of theparametersrecord component.path()Returns the value of thepathrecord component.Returns the value of therequestBodiesrecord component.Returns the value of theresponsesrecord component.Returns the value of theresponseTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApiDocEndpoint
public ApiDocEndpoint(Class<?> handlerType, Executable executable, String origin, String path, String method, boolean autoHead, boolean autoOptions, ApiDocDetails documentation, List<ApiDocParameter> parameters, List<ApiDocRequestBody> requestBodies, Type responseType, List<ApiDocResponseDescriptor> responses) Creates an instance of aApiDocEndpointrecord class.- Parameters:
handlerType- the value for thehandlerTyperecord componentexecutable- the value for theexecutablerecord componentorigin- the value for theoriginrecord componentpath- the value for thepathrecord componentmethod- the value for themethodrecord componentautoHead- the value for theautoHeadrecord componentautoOptions- the value for theautoOptionsrecord componentdocumentation- the value for thedocumentationrecord componentparameters- the value for theparametersrecord componentrequestBodies- the value for therequestBodiesrecord componentresponseType- the value for theresponseTyperecord componentresponses- the value for theresponsesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
handlerType
Returns the value of thehandlerTyperecord component.- Returns:
- the value of the
handlerTyperecord component
-
executable
Returns the value of theexecutablerecord component.- Returns:
- the value of the
executablerecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
autoHead
public boolean autoHead()Returns the value of theautoHeadrecord component.- Returns:
- the value of the
autoHeadrecord component
-
autoOptions
public boolean autoOptions()Returns the value of theautoOptionsrecord component.- Returns:
- the value of the
autoOptionsrecord component
-
documentation
Returns the value of thedocumentationrecord component.- Returns:
- the value of the
documentationrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
requestBodies
Returns the value of therequestBodiesrecord component.- Returns:
- the value of the
requestBodiesrecord component
-
responseType
Returns the value of theresponseTyperecord component.- Returns:
- the value of the
responseTyperecord component
-
responses
Returns the value of theresponsesrecord component.- Returns:
- the value of the
responsesrecord component
-