org.jboss.webservice.jaf
Class JAFConfigService

java.lang.Object
  extended byorg.jboss.webservice.jaf.JAFConfigService

public class JAFConfigService
extends java.lang.Object

A pojo service which can be used to populate the JAF MailcapCommandMap with mailcap content-type to DataContentHandler class. The default mailcaps are text/xml, application/xml mapping to org.jboss.webservice.jaf.XMLDataContentHandler

See Also:
javax.activation.DataContentHandler, javax.activation.MailcapCommandMap, XMLDataContentHandler (src)

Constructor Summary
JAFConfigService()
           
 
Method Summary
 java.lang.String[] getMailcaps()
           
 void setMailcaps(java.lang.String[] mailcaps)
           
 void start()
          Register the mailcaps with the default MailcapCommandMap
 void stop()
          Do nothing since MailcapCommandMap does not support removal of mailcaps
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAFConfigService

public JAFConfigService()
Method Detail

getMailcaps

public java.lang.String[] getMailcaps()

setMailcaps

public void setMailcaps(java.lang.String[] mailcaps)

start

public void start()
           throws java.lang.Exception
Register the mailcaps with the default MailcapCommandMap

Throws:
java.lang.Exception
See Also:
MailcapCommandMap

stop

public void stop()
          throws java.lang.Exception
Do nothing since MailcapCommandMap does not support removal of mailcaps

Throws:
java.lang.Exception