|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for document content (full text) retrieval through an HttpServlet.
Used by theGetContentServlet. Document content handlers are configurable.
XML Configuration Template for ContentHandlers:
<ContentHandlers>
<ContentHandler contentType="[ name of the content handler in the http request ]"
class="[ class of com.raritantechnologies.quickstart.userInterface.IDocumentContentHandler ]" >
</ContentHandler>
</ContentHandlers>
| Method Summary | |
java.lang.String |
getErrorPage(HttpServletRequest pReq)
|
java.lang.String |
getHandlerName()
Returns the name of document handler |
java.lang.String |
getLastContentType()
|
java.lang.String |
getLastDocumentName()
|
java.util.Map |
getLastDocumentParamMap()
Returns a Map of document param=value |
java.util.List |
getRequestParameters()
returns the list of parameters needed in the HTTP request. |
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. |
byte[] |
sendDocumentContent(java.util.Map handlerInfo)
Sends the document content to the whatever class calls it using parameters defined in a Map. |
| Method Detail |
public void sendDocumentContent(ILoginInfo userInfo,
HttpServletRequest pReq,
HttpServletResponse pRes)
throws ServletException
userInfo - User information for this session user. May be used to restrict access to content.pReq - The HttpServletRequest for the requested content.pRes - The HttpServletResponse. The content handler will obtain a ServletOutputStream from
this object and write the content to this stream.
ServletExceptionpublic byte[] sendDocumentContent(java.util.Map handlerInfo)
handlerInfo - Information needed by the implementing class to retrieve and send content.public void initialize(org.w3c.dom.Element initElem)
IConfigurable
initialize in interface IConfigurablepublic java.lang.String getErrorPage(HttpServletRequest pReq)
public java.lang.String getLastDocumentName()
public java.lang.String getHandlerName()
public java.util.Map getLastDocumentParamMap()
public java.lang.String getLastContentType()
public java.util.List getRequestParameters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||