Produced by Araxis Merge on 6/9/2017 3:49:59 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Fri Jun 9 19:49:59 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-common\src\main\java\gov\va\nvap\common\xsl | ClasspathURLResolver.java | Fri Apr 21 20:03:26 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 53 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | package go v.va.nvap. common.xsl ; | |||||
| 2 | ||||||
| 3 | import jav a.io.IOExc eption; | |||||
| 4 | import jav a.net.URL; | |||||
| 5 | ||||||
| 6 | import jav ax.xml.tra nsform.Sou rce; | |||||
| 7 | import jav ax.xml.tra nsform.Tra nsformerEx ception; | |||||
| 8 | import jav ax.xml.tra nsform.URI Resolver; | |||||
| 9 | import jav ax.xml.tra nsform.str eam.Stream Source; | |||||
| 10 | ||||||
| 11 | import org .springfra mework.con text.Appli cationCont ext; | |||||
| 12 | import org .springfra mework.con text.Appli cationCont extAware; | |||||
| 13 | import org .springfra mework.con text.Appli cationCont extExcepti on; | |||||
| 14 | import org .springfra mework.con text.annot ation.Conf iguration; | |||||
| 15 | import org .springfra mework.cor e.io.Resou rce; | |||||
| 16 | ||||||
| 17 | /** | |||||
| 18 | * @author Asha Amri traj | |||||
| 19 | */ | |||||
| 20 | @Configura tion | |||||
| 21 | public cla ss Classpa thURLResol ver implem ents URIRe solver, | |||||
| 22 | Appl icationCon textAware { | |||||
| 23 | ||||||
| 24 | pr ivate Appl icationCon text appli cationCont ext; | |||||
| 25 | ||||||
| 26 | pr otected fi nal Source getStyles heetSource (final Res ource styl esheetLoca tion) { | |||||
| 27 | try { | |||||
| 28 | final URL url = stylesheet Location.g etURL(); | |||||
| 29 | final String url Path = url .toString( ); | |||||
| 30 | final String sys temId = ur lPath.subs tring(0, | |||||
| 31 | urlPath.la stIndexOf( '/') + 1); | |||||
| 32 | return new Strea mSource(ur l.openStre am(), syst emId); | |||||
| 33 | } ca tch (final IOExcepti on ex) { | |||||
| 34 | throw new Applic ationConte xtExceptio n( | |||||
| 35 | "Can't loa d XSLT sty lesheet fr om " + sty lesheetLoc ation, ex) ; | |||||
| 36 | } | |||||
| 37 | } | |||||
| 38 | ||||||
| 39 | @O verride | |||||
| 40 | pu blic final Source re solve(fina l String h ref, final String ba se) | |||||
| 41 | throws Transform erExceptio n { | |||||
| 42 | fina l Resource resource = this.app licationCo ntext | |||||
| 43 | .getReso urce("clas spath:" + href); | |||||
| 44 | retu rn this.ge tStyleshee tSource(re source); | |||||
| 45 | } | |||||
| 46 | ||||||
| 47 | @O verride | |||||
| 48 | pu blic final void setA pplication Context( | |||||
| 49 | final Applicatio nContext t heApplicat ionContext ) { | |||||
| 50 | this .applicati onContext = theAppli cationCont ext; | |||||
| 51 | } | |||||
| 52 | ||||||
| 53 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.