Package com.linecorp.armeria.server.docs
Class MethodInfo
java.lang.Object
com.linecorp.armeria.server.docs.MethodInfo
@UnstableApi public final class MethodInfo extends Object
Metadata about a function of a
Service
.-
Constructor Summary
Constructors Constructor Description MethodInfo(String name, TypeSignature returnTypeSignature, Iterable<FieldInfo> parameters, Iterable<TypeSignature> exceptionTypeSignatures, Iterable<EndpointInfo> endpoints)
Creates a new instance.MethodInfo(String name, TypeSignature returnTypeSignature, Iterable<FieldInfo> parameters, Iterable<TypeSignature> exceptionTypeSignatures, Iterable<EndpointInfo> endpoints, HttpMethod httpMethod, String docString)
Creates a new instance.MethodInfo(String name, TypeSignature returnTypeSignature, Iterable<FieldInfo> parameters, Iterable<TypeSignature> exceptionTypeSignatures, Iterable<EndpointInfo> endpoints, Iterable<HttpHeaders> exampleHttpHeaders, Iterable<String> exampleRequests, Iterable<String> examplePaths, Iterable<String> exampleQueries, HttpMethod httpMethod, String docString)
Creates a new instance. -
Method Summary
Modifier and Type Method Description String
docString()
Returns the documentation string of the function.Set<EndpointInfo>
endpoints()
Returns the endpoints for accessing this method.boolean
equals(Object o)
List<HttpHeaders>
exampleHttpHeaders()
Returns the example HTTP headers of the method.List<String>
examplePaths()
Returns the example paths of the method.List<String>
exampleQueries()
Returns the example queries of the method.List<String>
exampleRequests()
Returns the list of the example request serialized in a string.Set<TypeSignature>
exceptionTypeSignatures()
Returns the metadata about the exceptions declared by the function.int
hashCode()
HttpMethod
httpMethod()
Returns the HTTP method of this method.String
name()
Returns the name of the function.List<FieldInfo>
parameters()
Returns the metadata about the parameters of the function.TypeSignature
returnTypeSignature()
Returns the signature of the return type of the function.String
toString()
-
Constructor Details
-
MethodInfo
public MethodInfo(String name, TypeSignature returnTypeSignature, Iterable<FieldInfo> parameters, Iterable<TypeSignature> exceptionTypeSignatures, Iterable<EndpointInfo> endpoints)Creates a new instance. -
MethodInfo
public MethodInfo(String name, TypeSignature returnTypeSignature, Iterable<FieldInfo> parameters, Iterable<TypeSignature> exceptionTypeSignatures, Iterable<EndpointInfo> endpoints, HttpMethod httpMethod, @Nullable String docString)Creates a new instance. -
MethodInfo
public MethodInfo(String name, TypeSignature returnTypeSignature, Iterable<FieldInfo> parameters, Iterable<TypeSignature> exceptionTypeSignatures, Iterable<EndpointInfo> endpoints, Iterable<HttpHeaders> exampleHttpHeaders, Iterable<String> exampleRequests, Iterable<String> examplePaths, Iterable<String> exampleQueries, HttpMethod httpMethod, @Nullable String docString)Creates a new instance.
-
-
Method Details
-
name
Returns the name of the function. -
returnTypeSignature
Returns the signature of the return type of the function. -
endpoints
Returns the endpoints for accessing this method. -
parameters
Returns the metadata about the parameters of the function. -
exceptionTypeSignatures
Returns the metadata about the exceptions declared by the function. -
exampleHttpHeaders
Returns the example HTTP headers of the method. -
exampleRequests
Returns the list of the example request serialized in a string. The format of the example request string depends on the underlying RPC implementation. -
examplePaths
Returns the example paths of the method. -
exampleQueries
Returns the example queries of the method. -
httpMethod
Returns the HTTP method of this method. -
docString
Returns the documentation string of the function. -
equals
-
hashCode
public int hashCode() -
toString
-