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 Details

  • Method Details

    • name

      public String name()
      Returns the name of the function.
    • returnTypeSignature

      public TypeSignature returnTypeSignature()
      Returns the signature of the return type of the function.
    • endpoints

      public Set<EndpointInfo> endpoints()
      Returns the endpoints for accessing this method.
    • parameters

      public List<FieldInfo> parameters()
      Returns the metadata about the parameters of the function.
    • exceptionTypeSignatures

      public Set<TypeSignature> exceptionTypeSignatures()
      Returns the metadata about the exceptions declared by the function.
    • exampleHeaders

      public List<HttpHeaders> exampleHeaders()
      Returns the example HTTP headers of the method.
    • exampleRequests

      public List<String> 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

      public List<String> examplePaths()
      Returns the example paths of the method.
    • exampleQueries

      public List<String> exampleQueries()
      Returns the example queries of the method.
    • httpMethod

      public HttpMethod httpMethod()
      Returns the HTTP method of this method.
    • docString

      @Nullable public String docString()
      Returns the documentation string of the function.
    • equals

      public boolean equals​(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object