]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
set user agent on tree builder
authorKeiron Liddle <keiron@apache.org>
Tue, 5 Mar 2002 10:26:36 +0000 (10:26 +0000)
committerKeiron Liddle <keiron@apache.org>
Tue, 5 Mar 2002 10:26:36 +0000 (10:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194690 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/apps/Driver.java
src/org/apache/fop/fo/FOTreeBuilder.java

index e8be3c3ef69727b9fe5a157092aa7b71906e0006..02d27a6ae44d4f18bef52ab117ff6a991002956a 100644 (file)
@@ -456,6 +456,7 @@ public class Driver {
         StreamRenderer streamRenderer = new StreamRenderer(_stream, _renderer);
         streamRenderer.setLogger(getLogger());
         _treeBuilder.setLogger(getLogger());
+        _treeBuilder.setUserAgent(getUserAgent());
         _treeBuilder.setStreamRenderer(streamRenderer);
 
         return _treeBuilder;
index 16d4bdc8a01807e1392657413f2795b0237d114f..3d548073a335a758e86cf79dfbcca680ecee3488 100644 (file)
@@ -79,6 +79,10 @@ public class FOTreeBuilder extends DefaultHandler {
         log = logger;
     }
 
+    public void setUserAgent(FOUserAgent ua) {
+        userAgent = ua;
+    }
+
     public void setStreamRenderer(StreamRenderer streamRenderer) {
         this.streamRenderer = streamRenderer;
     }