APIdia Launch Partner
Top Description Fields Constructors Methods
javax.xml.catalog

pack-priv final Class RewriteUri

extends BaseEntry
Class Inheritance
Imports
java.net.URL

Represents a rewriteURI entry.
Since
9

Field Summary

Modifier and TypeField and Description
pack-priv URL
pack-priv String
Inherited from javax.xml.catalog.BaseEntry:
baseSpecifiedbaseURIidmatchIdSLASHtype

Constructor Summary

AccessConstructor and Description
public
RewriteUri(String base, String
The uriStartString attribute.
uriStartString
,
String
The rewritePrefix attribute.
rewritePrefix
)

Construct a rewriteURI entry.

Method Summary

Modifier and TypeMethod and Description
public URL

Returns:

The rewritePrefix attribute value.
getRewritePrefix
()

Get the rewritePrefix attribute.

public String

Returns:

The uriStartString
getURIStartString
()

Get the uriStartString attribute.

public String

Returns:

The replacement URI if the match is successful, null if not.
match
(String
The systemId to be matched.
systemId
,
int
The length of uriStartString of previous match if any.
currentMatch
)

Overrides javax.xml.catalog.BaseEntry.match.

Try to match the specified systemId with the entry.

public String
match(String systemId)

Overrides javax.xml.catalog.BaseEntry.match.

Matches the specified string with the identifier attribute of the entry.

public void
setRewritePrefix(String
The rewritePrefix attribute value.
rewritePrefix
)

Set the rewritePrefix attribute.

public void
setURIStartString(String
The uriStartString attribute value.
uriStartString
)

Set the uriStartString attribute.

Inherited from javax.xml.catalog.BaseEntry:
getBaseURIgetIdgetMatchIdgetTypesetBaseURIsetIdsetMatchIdsetTypeverifyURI

Field Detail

rewritePrefixback to summary
pack-priv URL rewritePrefix
uriStartStringback to summary
pack-priv String uriStartString

Constructor Detail

RewriteUriback to summary
public RewriteUri(String base, String uriStartString, String rewritePrefix)

Construct a rewriteURI entry.

Parameters
uriStartString:String

The uriStartString attribute.

rewritePrefix:String

The rewritePrefix attribute.

Method Detail

getRewritePrefixback to summary
public URL getRewritePrefix()

Get the rewritePrefix attribute.

Returns:URL

The rewritePrefix attribute value.

getURIStartStringback to summary
public String getURIStartString()

Get the uriStartString attribute.

Returns:String

The uriStartString

matchback to summary
public String match(String systemId, int currentMatch)

Overrides javax.xml.catalog.BaseEntry.match.

Try to match the specified systemId with the entry. Return the match if it is successful and the length of the systemIdStartString is longer than the longest of any previous match.

Parameters
systemId:String

The systemId to be matched.

currentMatch:int

The length of uriStartString of previous match if any.

Returns:String

The replacement URI if the match is successful, null if not.

Annotations
@Override
matchback to summary
public String match(String systemId)

Overrides javax.xml.catalog.BaseEntry.match.

Doc from javax.xml.catalog.BaseEntry.match.

Matches the specified string with the identifier attribute of the entry.

Annotations
@Override
setRewritePrefixback to summary
public void setRewritePrefix(String rewritePrefix)

Set the rewritePrefix attribute. If the value of the rewritePrefix attribute is relative, it must be made absolute with respect to the base URI currently in effect.

Parameters
rewritePrefix:String

The rewritePrefix attribute value.

setURIStartStringback to summary
public void setURIStartString(String uriStartString)

Set the uriStartString attribute.

Parameters
uriStartString:String

The uriStartString attribute value.