Class ServletHelper

java.lang.Object
jp.cssj.cti2.helpers.jakarta.ServletHelper

public final class ServletHelper extends Object
Utilities for using a document conversion server from a servlet.
  • Method Details

    • setServletResponse

      public static void setServletResponse(CTISession session, jakarta.servlet.ServletResponse response) throws IOException
      Sets a ServletResponse as the session's output destination.
      Parameters:
      session - The session whose output destination you want to set.
      response - The response to output the results to.
      Throws:
      IOException
    • getContentType

      public static String getContentType(net.zamasoft.zstream.resolver.SourceMetadata metaSource)
      Returns a Content-Type header value with a charset parameter.
      Parameters:
      SourceMetadata - Metadata for the data.
      Returns:
      The Content-Type header with a charset parameter.