com.ibm.wbi.protocol.http.beans.link
Class LinkProcessor
java.lang.Object
|
+--com.ibm.wbi.protocol.http.beans.link.LinkProcessor
- public class LinkProcessor
- extends java.lang.Object
In some cases it is desired to modify all links on a given page.
This class, in conjunction with an implementation of the
LinkRewriter interface, is designed to ease this process. Using an
HtmlEditor, this class searches for many known classes of links
(the "HREF" attribute of "A" tags, the "SRC" attribute of "IMG"
tags, etc.) categorizes them as "links" or "sources" (the former
can be followed, the latter is for inline data like images), and
calls the appropriate methods on the LinkRewriter instance.
- See Also:
LinkRewriter,
KeepOnServerEditor,
RedirectFollowEditor
|
Method Summary |
static void |
editLinks(ResponseToRequest rtr,
java.io.OutputStream out,
LinkRewriter lr)
Process the links within the document pointed to by the
ResponseToRequest by invoking the LinkRewriter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinkProcessor
public LinkProcessor()
editLinks
public static void editLinks(ResponseToRequest rtr,
java.io.OutputStream out,
LinkRewriter lr)
throws java.io.IOException
- Process the links within the document pointed to by the
ResponseToRequest by invoking the LinkRewriter.
- Parameters:
rtr - The ResponseToRequest (contains document) to operate onout - The stream to write tolr - The LinkRewriter instance- Throws:
java.io.IOException - if an error occurs