APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.security.utils.resolver.implementations

public Class ResolverXPointer

extends ResourceResolverSpi
Class Inheritance
Imports
com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput, com.sun.org.apache.xml.internal.security.utils.XMLUtils, com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolverContext, .ResourceResolverException, .ResourceResolverSpi, org.w3c.dom.Document, .Element, .Node

Handles barename XPointer Reference URIs. To retain comments while selecting an element by an identifier ID, use the following full XPointer: URI='#xpointer(id('ID'))'. To retain comments while selecting the entire document, use the following full XPointer: URI='#xpointer(/)'. This XPointer contains a simple XPath expression that includes the root node, which the second to last step above replaces with all nodes of the parse tree (all descendants, plus all attributes, plus all namespaces nodes).

Field Summary

Modifier and TypeField and Description
private static final Logger
private static final String
private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
engineCanResolveURI(ResourceResolverContext context)

Implements abstract com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolverSpi.engineCanResolveURI.

This method helps the ResourceResolver to decide whether a ResourceResolverSpi is able to perform the requested action.

public XMLSignatureInput
engineResolveURI(ResourceResolverContext context)

Implements abstract com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolverSpi.engineResolveURI.

This is the workhorse method used to resolve resources.

private static String

Returns:

xpointerId to search.
getXPointerId
(String uri)

Method getXPointerId

private static boolean

Returns:

whether it has an xpointer id
isXPointerId
(String uri)

Method isXPointerId

private static boolean

Returns:

true if begins with xpointer
isXPointerSlash
(String uri)

Method isXPointerSlash

Inherited from com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolverSpi:
scheme

Field Detail

LOGback to summary
private static final Logger LOG
XPback to summary
private static final String XP
XP_LENGTHback to summary
private static final int XP_LENGTH

Constructor Detail

ResolverXPointerback to summary
public ResolverXPointer()

Method Detail

engineCanResolveURIback to summary
public boolean engineCanResolveURI(ResourceResolverContext context)

Implements abstract com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolverSpi.engineCanResolveURI.

Doc from com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolverSpi.engineCanResolveURI.

This method helps the ResourceResolver to decide whether a ResourceResolverSpi is able to perform the requested action.

Annotations
@Override
engineResolveURIback to summary
public XMLSignatureInput engineResolveURI(ResourceResolverContext context) throws ResourceResolverException

Implements abstract com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolverSpi.engineResolveURI.

Doc from com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolverSpi.engineResolveURI.

This is the workhorse method used to resolve resources.

Annotations
@Override
getXPointerIdback to summary
private static String getXPointerId(String uri)

Method getXPointerId

Returns:String

xpointerId to search.

isXPointerIdback to summary
private static boolean isXPointerId(String uri)

Method isXPointerId

Returns:boolean

whether it has an xpointer id

isXPointerSlashback to summary
private static boolean isXPointerSlash(String uri)

Method isXPointerSlash

Returns:boolean

true if begins with xpointer