Class RestServiceWriter

java.lang.Object
com.xebialabs.commons.html.HtmlWriter
com.xebialabs.gradle.documentation.restdoc.doclet.RestDocWriter
com.xebialabs.gradle.documentation.restdoc.doclet.RestServiceWriter

public class RestServiceWriter extends RestDocWriter
Writes a documentation page for a single service class.
  • Constructor Details

    • RestServiceWriter

      public RestServiceWriter(PrintWriter writer, TypeElement service, boolean printJsonContentType)
      Creates a new writer. Use a new instance for each page.
      Parameters:
      writer - the stream to write to.
      service - the javadoc info of the Rest class to be documented.
      printJsonContentType -
  • Method Details

    • writeRestService

      public void writeRestService()
      Writes the entire page.
    • getAnnotationValue

      public static String getAnnotationValue(Element element, String annotationType)