Interface ProxyOutput

All Known Implementing Classes:
NCBOProxyOutput

public interface ProxyOutput
This interface specifies the output of the annotator
  • Field Details

    • HTTP_INTERNAL_APPLICATION_ERROR

      static final int HTTP_INTERNAL_APPLICATION_ERROR
      See Also:
  • Method Details

    • addCustomHeader

      void addCustomHeader(String name, String value)
    • transferCustomHeadersToResponse

      ProxyOutput transferCustomHeadersToResponse(javax.servlet.http.HttpServletResponse servletResponse)
    • makeFileTransfer

      ProxyOutput makeFileTransfer(String filename)
    • getStringContent

      String getStringContent()
      The content of the output
      Returns:
      the content of the output
    • getBinaryContent

      byte[] getBinaryContent()
    • isBinary

      boolean isBinary()
    • getMimeType

      String getMimeType()
      Get the mime type of the content
      Returns:
      the mime type of the content
    • create

      static ProxyOutput create(String content, String mimeType)
    • create

      static ProxyOutput create(byte[] content, String mimeType)