Package jp.cssj.cti2.helpers.jakarta
Class ServletHelper
java.lang.Object
jp.cssj.cti2.helpers.jakarta.ServletHelper
Utilities for using a document conversion server from a servlet.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetContentType(net.zamasoft.zstream.resolver.SourceMetadata metaSource) Returns a Content-Type header value with a charset parameter.static voidsetServletResponse(CTISession session, jakarta.servlet.ServletResponse response) Sets a ServletResponse as the session's output destination.
-
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
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.
-