/** * Creates a new {@link SnuggleSession} using the default {@link SessionConfiguration} * if se */ public SnuggleSession createSession() { SessionConfiguration sessionConfiguration = defaultSessionConfiguration; if (sessionConfiguration!=null) { sessionConfiguration = new SessionConfiguration(); } return createSession(sessionConfiguration); }
/** * Creates a new {@link SnuggleSession} using the default {@link SessionConfiguration} * if se */ public SnuggleSession createSession() { SessionConfiguration sessionConfiguration = defaultSessionConfiguration; if (sessionConfiguration!=null) { sessionConfiguration = new SessionConfiguration(); } return createSession(sessionConfiguration); }
/** * Creates a new {@link SnuggleEngine} using the given {@link StylesheetManager} * for managing stylesheets. Use this if you want to integrate XSLT caching * with your own code, want more control over how things get cached or want to control * the selection of XSLT implementations. */ public SnuggleEngine(StylesheetManager stylesheetManager) { this.packages = Collections.synchronizedList(new ArrayList<SnugglePackage>()); this.defaultSessionConfiguration = new SessionConfiguration(); this.defaultDOMOutputOptions = new DOMOutputOptions(); this.defaultXMLStringOutputOptions = new XMLStringOutputOptions(); /* Create manager for XSLT stylesheets using the given cache */ this.stylesheetManager = stylesheetManager; /* Add in core package */ packages.add(CorePackageDefinitions.getPackage()); }
/** * Creates a new {@link SnuggleEngine} using the given {@link StylesheetManager} * for managing stylesheets. Use this if you want to integrate XSLT caching * with your own code, want more control over how things get cached or want to control * the selection of XSLT implementations. */ public SnuggleEngine(StylesheetManager stylesheetManager) { this.packages = new ArrayList<SnugglePackage>(); this.defaultSessionConfiguration = new SessionConfiguration(); this.defaultDOMOutputOptions = new DOMOutputOptions(); this.defaultXMLStringOutputOptions = new XMLStringOutputOptions(); /* Create manager for XSLT stlyesheets using the given cache */ this.stylesheetManager = stylesheetManager; /* Add in core package */ packages.add(CorePackageDefinitions.getPackage()); }
/** * Creates a new {@link SnuggleEngine} using the given {@link StylesheetManager} * for managing stylesheets. Use this if you want to integrate XSLT caching * with your own code, want more control over how things get cached or want to control * the selection of XSLT implementations. */ public SnuggleEngine(StylesheetManager stylesheetManager) { this.packages = new ArrayList<SnugglePackage>(); this.defaultSessionConfiguration = new SessionConfiguration(); this.defaultDOMOutputOptions = new DOMOutputOptions(); this.defaultXMLStringOutputOptions = new XMLStringOutputOptions(); /* Create manager for XSLT stlyesheets using the given cache */ this.stylesheetManager = stylesheetManager; /* Add in core package */ packages.add(CorePackageDefinitions.getPackage()); }