@Override public String getTaskDocumentation(TaskDocumentationContext context) throws Throwable { // Should always only have the one task // Obtain the prefix String prefix = context .getPropertyList() .getPropertyValue( SourceHttpResourceFactory.PROPERTY_CLASS_PATH_PREFIX, "<not specified>"); // Return the documentation return "Sends the " + HttpFile.class.getSimpleName() + " from the class path as specified on the request URI of the " + HttpRequest.class.getSimpleName() + "\n\nIn finding the " + HttpFile.class.getSimpleName() + " the prefix '" + prefix + "' is added to the " + HttpRequest.class.getSimpleName() + " request URI to restrict access to full class path resources."; }
@Override public String getTaskDocumentation(TaskDocumentationContext context) throws Throwable { // Should only be the one task // Obtain the status String status = context .getPropertyList() .getPropertyValue(HttpResponseSenderWorkSource.PROPERTY_HTTP_STATUS, "<not specified>"); // Provide documentation return "Send the " + HttpResponse.class.getSimpleName() + " to the client with status " + status; }