Class RESTUtils


  • public class RESTUtils
    extends Object
    Utility class around REST webservices.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • RESTUtils

        public RESTUtils()
    • 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 by AdditionalInformationHandler.
        Parameters:
        plugin - the plugin to generate the information for
        Returns:
        the information, null if none available