Annotation Type Response

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Class<? extends org.elypia.webservertestbed.api.ContentLoader> loader  
      int responseCode  
    • Element Detail

      • value

        String value
        Returns:
        The body of response.
      • responseCode

        int responseCode
        Returns:
        The HTTP response code of the request.
        Default:
        200
      • loader

        Class<? extends org.elypia.webservertestbed.api.ContentLoader> loader
        Returns:
        The ContentLoader to use when loading the value(). Defaults to searching for a resource in the classpath and reading it.
        Default:
        org.elypia.webservertestbed.loaders.ResourceContentLoader.class