Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] EntityResolver that uses cache and proxy?


Hi Ian,

As it turns out, I do have e-mail access.

You'll want to make use of the URI resolution framework. This framework allows your tool to take advantage of the same resolution strategy as other tools and allows other people to modify the resolution strategy employed by your tool. As Arthur said, the cache is implemented as a URI resolver. Making use of the framework gives you access to both the XML catalog and the cache.

To use the URI resolution framework add a requirement on org.eclipse.wst.common.uri.resolver and do the following:

URIResolver uriResolver = URIResolverPlugin.createResolver();
String logicalLocation = uriResolver.resolve(BASE_SYSTEM_ID, PUBLIC_ID, LITERAL_SYSTEM_ID);      
String physicalLocation = uriResolver.resolvePhysicalLocation(BASE_SYSTEM_ID, PUBLIC_ID, LITERAL_SYSTEM_ID);


where
BASE_SYSTEM_ID is typically the system location of the file that references the resource you're trying to resolve the location of.
PUBLIC_ID is a public identifier, such as a namespace, for the resource you're trying to resolve the location of.
LITERAL_SYSTEM_ID is the system location of the resource you're trying to resolve the location of. This can be absolute or relative.

The logical location and physical location may be the same but in cases such as with the cache, the logical location will be that which should be used by the tool and the physical location is where the file is actually located. For example, if the cache is requested to resolve http://www.eclipse.org it will return a logical location of http://www.eclipse.org and a physical location that maps to a location for the HTML file on your local drive.

Feel free to contact me directly if you have further questions.

Lawrence Mandel

Software Developer
IBM Rational Software
Phone: 905 - 413 - 3814   Fax: 905 - 413 - 4920
lmandel@xxxxxxxxxx



Arthur Ryman/Toronto/IBM@IBMCA
Sent by: wtp-dev-bounces@xxxxxxxxxxx

10/17/2005 10:15 PM

Please respond to
"General discussion of project-wide or architectural issues."

To
"ian.trimble@xxxxxxxxxx" <ian.trimble@xxxxxxxxxx>, "General discussion of project-wide or architectural issues." <wtp-dev@xxxxxxxxxxx>
cc
Subject
Re: [wtp-dev] EntityResolver that uses cache and proxy?






Ian,


We have a caching URI resolver. It uses the proxy settings by virtue of java.net. Lawrence Mandel is the developer. He's at OOPSLA this week and may not have email access.


Arthur Ryman,
IBM Software Group, Rational Division

blog: http://ryman.eclipsedevelopersjournal.com/
phone: +1-905-413-3077, TL 969-3077
assistant: +1-905-413-2411, TL 969-2411
fax: +1-905-413-4920, TL 969-4920
mobile: +1-416-939-5063, text: 4169395063@xxxxxxx


"Ian Trimble" <ian.trimble@xxxxxxxxxx>
Sent by: wtp-dev-bounces@xxxxxxxxxxx

10/17/2005 02:40 PM

Please respond to
"ian.trimble@xxxxxxxxxx" and "General discussion of project-wide or architectural issues."

To
"wtp-dev@xxxxxxxxxxx" <wtp-dev@xxxxxxxxxxx>
cc
Subject
[wtp-dev] EntityResolver that uses cache and proxy?







Hi,

 

I'm currently working on the JSF sub-project. I'm wondering if there exists a "stock" EntityResolver implementation that uses the proxy as set in Internet preferences and also caches the resolved entity automagically? In the absence of a "stock" implementation, what is the pattern for making use of the proxy/cache?

 

Thanks in advance,

- Ian

 

------------------------------------------------------------

Ian Trimble

JDeveloper Group

Oracle Corporation Canada Inc.

Office: (250) 954-0837

Email:
ian.trimble@xxxxxxxxxx
Web:
http://www.oracle.com
------------------------------------------------------------

This email may contain confidential and privileged material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please contact the sender and delete all copies.

_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-dev

_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-dev


Back to the top