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:
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.
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
"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