Class RestMethodMetadata


  • public class RestMethodMetadata
    extends Object
    This class encapsulates the metadata for the specified REST resource method.
    Author:
    jdlee
    • Method Detail

      • getHttpMethod

        public String getHttpMethod()
      • setHttpMethod

        public void setHttpMethod​(String httpMethod)
      • setQueryParameters

        public void setQueryParameters​(List<ParamMetadata> queryParameters)
      • getRequestPayload

        public Type getRequestPayload()
      • setRequestPayload

        public void setRequestPayload​(Type requestPayload)
      • getReturnPayload

        public Type getReturnPayload()
      • setReturnPayload

        public void setReturnPayload​(Type returnPayload)
      • getIsCollection

        public boolean getIsCollection()
      • setIsCollection

        public void setIsCollection​(boolean isCollection)
      • toJson

        public jakarta.json.JsonObject toJson()
                                       throws jakarta.json.JsonException
        Build and return a Json object representing the metadata for the resource method
        Returns:
        Throws:
        jakarta.json.JsonException
      • getTypeString

        protected String getTypeString​(Type clazz)