org.apache.servicemix.specs.activation
Class OsgiMailcapCommandMap

java.lang.Object
  extended by javax.activation.CommandMap
      extended by javax.activation.MailcapCommandMap
          extended by org.apache.servicemix.specs.activation.OsgiMailcapCommandMap

public class OsgiMailcapCommandMap
extends MailcapCommandMap

An OSGi enabled MailcapCommandMap


Constructor Summary
OsgiMailcapCommandMap()
           
 
Method Summary
protected  void addCommand(Map commandList, String mimeType, CommandInfo command)
          Add a command to a target command list (preferred or fallback).
 void addMailcap(String line, Bundle bundle)
           
 DataContentHandler createDataContentHandler(String mimeType)
           
 
Methods inherited from class javax.activation.MailcapCommandMap
addCommands, addMailcap, getAllCommands, getCommand, getMimeTypes, getNativeCommands, getPreferredCommands
 
Methods inherited from class javax.activation.CommandMap
createDataContentHandler, getAllCommands, getCommand, getDefaultCommandMap, getPreferredCommands, setDefaultCommandMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsgiMailcapCommandMap

public OsgiMailcapCommandMap()
Method Detail

addMailcap

public void addMailcap(String line,
                       Bundle bundle)

addCommand

protected void addCommand(Map commandList,
                          String mimeType,
                          CommandInfo command)
Description copied from class: MailcapCommandMap
Add a command to a target command list (preferred or fallback).

Overrides:
addCommand in class MailcapCommandMap
Parameters:
commandList - The target command list.
mimeType - The MIME type the command is associated with.
command - The command information.

createDataContentHandler

public DataContentHandler createDataContentHandler(String mimeType)
Overrides:
createDataContentHandler in class MailcapCommandMap


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.