Package adams.flow.dropwizard
Class RESTUtils
- java.lang.Object
-
- adams.flow.dropwizard.RESTUtils
-
public class RESTUtils extends Object
Utility class around REST webservices.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description RESTUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getAdditionalInformation(RESTPlugin plugin)
Generates information about the plugin, to be used for the information return byAdditionalInformationHandler
.protected static String
getAdditionalInformation(Class cls)
Returns the additional for the class, if any.protected static String
getAdditionalInformation(Method method)
Returns the additional for the method, if any.
-
-
-
Method Detail
-
getAdditionalInformation
protected static String getAdditionalInformation(Class cls)
Returns the additional for the class, if any.- Parameters:
cls
- the class to inspect- Returns:
- the generated information, null if none available
-
getAdditionalInformation
protected static String getAdditionalInformation(Method method)
Returns the additional for the method, if any.- Parameters:
method
- the method to inspect- Returns:
- the generated information, null if none available
-
getAdditionalInformation
public static String getAdditionalInformation(RESTPlugin plugin)
Generates information about the plugin, to be used for the information return byAdditionalInformationHandler
.- Parameters:
plugin
- the plugin to generate the information for- Returns:
- the information, null if none available
-
-