com.raritantechnologies.federated.eRoom
Class ERoomDocumentContentHandler
java.lang.Object
com.raritantechnologies.quickstart.userInterface.SecureDocumentContentHandler
com.raritantechnologies.federated.eRoom.ERoomDocumentContentHandler
- All Implemented Interfaces:
- IConfigurable, IDocumentContentHandler
- public class ERoomDocumentContentHandler
- extends SecureDocumentContentHandler
Enables documents to be retrieved from an ERoom.
For no eRoom Access: (valid eRoom Server login to the Server but no access to the specified eRoom): Send redirect to
a JSP page that takes an "eRoomURI" parameter, and looks up the eRoom Coordinators list.
For no eRoom Document access: (valid eRoom login, access to the eRoom but not to the specified document): Send redirect
to a JSP page that takes an eRoomURI and eRoom docPath parameter.
XML Configuration Template:
<ContentHandler class="com.raritantechnologies.federated.eRoom.ERoomDocumentContentHandler"
eRoomServerURL="[ url to eRoom Server ]"
alternateLoginName="[ (optional) alternate login name for eRoom ]"
adminUser="[ eRoom Admin User ]"
adminPw="[ eRoom admin pw ]"
loginPage="[ URL to login page for secure access ]"
noERoomAccessPage="[ URL to page if no eRoom Access ]"
noDocumentAccessPage="[ URL to page if no eRoom Document Access ]" />
|
Method Summary |
java.lang.String |
getErrorPage(HttpServletRequest pReq)
|
void |
initialize(org.w3c.dom.Element initElem)
Initializes the object from an XML tag or element. |
void |
sendDocumentContent(ILoginInfo userInfo,
HttpServletRequest pReq,
HttpServletResponse pRes)
Sends the document content to the HttpServletResponse using parameters in the HttpServletRequest. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERoomDocumentContentHandler
public ERoomDocumentContentHandler()
sendDocumentContent
public void sendDocumentContent(ILoginInfo userInfo,
HttpServletRequest pReq,
HttpServletResponse pRes)
throws ServletException
- Description copied from interface:
IDocumentContentHandler
- Sends the document content to the HttpServletResponse using parameters in the HttpServletRequest.
- Specified by:
sendDocumentContent in interface IDocumentContentHandler- Overrides:
sendDocumentContent in class SecureDocumentContentHandler
- Throws:
ServletException
getErrorPage
public java.lang.String getErrorPage(HttpServletRequest pReq)
- Specified by:
getErrorPage in interface IDocumentContentHandler- Overrides:
getErrorPage in class SecureDocumentContentHandler
initialize
public void initialize(org.w3c.dom.Element initElem)
- Description copied from interface:
IConfigurable
- Initializes the object from an XML tag or element.
This method is called by the Framework as part of the application initializtion.
see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory.
Configurable objects that are owned or contained by other configurable objects will be initialized
in by the parent object.
- Specified by:
initialize in interface IDocumentContentHandler- Overrides:
initialize in class SecureDocumentContentHandler