degu.degudocumentbuilder.ejb
Class DocumentBuilderBean

java.lang.Object
  extended by degu.degudocumentbuilder.ejb.DocumentBuilderBean
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean

public class DocumentBuilderBean
extends java.lang.Object
implements javax.ejb.SessionBean

See Also:
Serialized Form

Field Summary
private  DeguDocumentBuilderAllTypes docBuilder
           
 
Constructor Summary
DocumentBuilderBean()
           
 
Method Summary
 DeguDocument build(RawDocument rawDocument)
          Business method
 void ejbActivate()
           
 void ejbCreate()
          Default create method
 void ejbPassivate()
           
 void ejbRemove()
           
 void setSessionContext(javax.ejb.SessionContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

docBuilder

private DeguDocumentBuilderAllTypes docBuilder
Constructor Detail

DocumentBuilderBean

public DocumentBuilderBean()
Method Detail

setSessionContext

public void setSessionContext(javax.ejb.SessionContext ctx)
                       throws javax.ejb.EJBException,
                              java.rmi.RemoteException
Specified by:
setSessionContext in interface javax.ejb.SessionBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

ejbRemove

public void ejbRemove()
               throws javax.ejb.EJBException,
                      java.rmi.RemoteException
Specified by:
ejbRemove in interface javax.ejb.SessionBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

ejbActivate

public void ejbActivate()
                 throws javax.ejb.EJBException,
                        java.rmi.RemoteException
Specified by:
ejbActivate in interface javax.ejb.SessionBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

ejbPassivate

public void ejbPassivate()
                  throws javax.ejb.EJBException,
                         java.rmi.RemoteException
Specified by:
ejbPassivate in interface javax.ejb.SessionBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
Default create method

Throws:
javax.ejb.CreateException

build

public DeguDocument build(RawDocument rawDocument)
                   throws FailedToDetectMimeTypeException,
                          NotSupportedMimeTypeException,
                          FailedToStripText,
                          DocumentEncryptedException,
                          java.io.IOException
Business method

Throws:
DocumentEncryptedException
FailedToStripText
NotSupportedMimeTypeException
FailedToDetectMimeTypeException
java.io.IOException