|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.net.resolve.Web3DURNResolver
A URN resolver to allow the integration of URNs that use the
web3d Namespace ID.
| Field Summary |
| Fields inherited from interface org.ietf.uri.URIResolverService |
I2C, I2Cs, I2L, I2Ls, I2N, I2Ns, I2R, I2Rs, II |
| Constructor Summary | |
Web3DURNResolver()
Create an instance of the resolver. |
|
| Method Summary | |
boolean |
canResolve(java.lang.String nid)
Check to see what NIDs can be resolved by this service implementation. |
boolean |
checkService(int type)
Check to see if the service type is one that we can resolve given the namespace ID. |
java.lang.Object |
decode(org.ietf.uri.URN urn,
int service)
Decode this URN using the given service type in the singular. |
java.lang.Object[] |
decodeList(org.ietf.uri.URN urn,
int service)
Decode this URN using the given service type that gives a list of return values. |
void |
init()
Initialise any internal information. |
void |
registerPrefixLocation(java.lang.String prefix,
java.lang.String directory)
Set the directory used to locate a particular subspace of the Web3D URN namespace ID. |
void |
setErrorReporter(ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated by the loading of script code can be reported in a nice, pretty fashion. |
void |
setResourceFactory(org.ietf.uri.URIResourceFactory fac)
Set the resource factory to be used to fetch streams for. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Web3DURNResolver()
| Method Detail |
public boolean canResolve(java.lang.String nid)
canResolve in interface org.ietf.uri.URNResolverServicenid - The NID to check
public java.lang.Object decode(org.ietf.uri.URN urn,
int service)
throws org.ietf.uri.UnsupportedServiceException
decode in interface org.ietf.uri.URNResolverServiceurn - The urn that was requested to be resolvedservice - The service type of the resolution
org.ietf.uri.UnsupportedServiceException - We don't handle this service
public java.lang.Object[] decodeList(org.ietf.uri.URN urn,
int service)
throws org.ietf.uri.UnsupportedServiceException
decodeList in interface org.ietf.uri.URNResolverServiceurn - The urn that was requested to be resolvedservice - The service type of the resolution
org.ietf.uri.UnsupportedServiceException - We don't handle this servicepublic boolean checkService(int type)
checkService in interface org.ietf.uri.URIResolverServicetype - The service type to check if it works
public void init()
init in interface org.ietf.uri.URIResolverServicepublic void setResourceFactory(org.ietf.uri.URIResourceFactory fac)
setResourceFactory in interface org.ietf.uri.URIResolverServicefac - The factory to be usedpublic void setErrorReporter(ErrorReporter reporter)
reporter - The instance to use or null
public void registerPrefixLocation(java.lang.String prefix,
java.lang.String directory)
throws java.lang.IllegalArgumentException
prefix - The subspace prefix to usedirectory - The directory that GeoVRML is installed in
java.lang.IllegalArgumentException - The directory is not valid
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||