public class DataContentHandlerRegistry extends GenericService
javax.activation.DataContentHandler
implementations corresponding to particular MIME types.
Whenever the service's dataContentHandlerMap
property is set, the default JAF CommandMap is
updated to include the additional content handlers.
Thus, this service is basically a programmatic extension
of a mailcap file (see JAF documentation, particularly the
javax.activation.MailcapCommandMap class, for
more information).
DataContentHandler,
MailcapCommandMap| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
DataContentHandlerRegistry() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Properties |
getDataContentHandlerMap()
Returns the mapping between MIME types and class names of
javax.activation.DataContentHandler
implementations. |
void |
setDataContentHandlerMap(java.util.Properties pDataContentHandlerMap)
Sets the mapping between MIME types and class names of
javax.activation.DataContentHandler
implementations. |
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic java.util.Properties getDataContentHandlerMap()
javax.activation.DataContentHandler
implementations. For each mapping in this map, an
association will be made between the MIME type and the
DataContentHandler which should be used to
transfer the content of that type. For example, if a mapping
exists between "text/html" and
HtmlDataContentHandler, then the
HtmlDataContentHandler class will be used when
operating on content of type "text/html."DataContentHandlerpublic void setDataContentHandlerMap(java.util.Properties pDataContentHandlerMap)
javax.activation.DataContentHandler
implementations. For each mapping in this map, an
association will be made between the MIME type and the
DataContentHandler which should be used to
transfer the content of that type. For example, if a mapping
exists between "text/html" and
HtmlDataContentHandler, then the
HtmlDataContentHandler class will be used when
operating on content of type "text/html."DataContentHandler