Class RestMethodMetadata
- java.lang.Object
-
- org.glassfish.admin.rest.composite.metadata.RestMethodMetadata
-
public class RestMethodMetadata extends Object
This class encapsulates the metadata for the specified REST resource method.- Author:
- jdlee
-
-
Constructor Summary
Constructors Constructor Description RestMethodMetadata(OptionsCapable context, Method method, Annotation designator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHttpMethod()
boolean
getIsCollection()
List<ParamMetadata>
getQueryParameters()
Type
getRequestPayload()
Type
getReturnPayload()
protected String
getTypeString(Type clazz)
void
setHttpMethod(String httpMethod)
void
setIsCollection(boolean isCollection)
void
setQueryParameters(List<ParamMetadata> queryParameters)
void
setRequestPayload(Type requestPayload)
void
setReturnPayload(Type returnPayload)
jakarta.json.JsonObject
toJson()
Build and return a Json object representing the metadata for the resource methodString
toString()
-
-
-
Constructor Detail
-
RestMethodMetadata
public RestMethodMetadata(OptionsCapable context, Method method, Annotation designator)
-
-
Method Detail
-
getHttpMethod
public String getHttpMethod()
-
setHttpMethod
public void setHttpMethod(String httpMethod)
-
getQueryParameters
public List<ParamMetadata> getQueryParameters()
-
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
-
-