Class DefaultResourcePolicy
java.lang.Object
com.github.weisj.jsvg.parser.resources.impl.DefaultResourcePolicy
- All Implemented Interfaces:
ResourcePolicy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intprivate final intprivate static final LoggerFields inherited from interface ResourcePolicy
ALLOW_ALL, ALLOW_RELATIVE, DENY_ALL, DENY_EXTERNAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable URIresolveResourceURI(@Nullable URI baseURI, @NotNull String path) @Nullable URIresolveResourceURI(@Nullable URI baseDocumentUri, @NotNull URI resourceUri)
-
Field Details
-
LOGGER
-
FLAG_ALLOW_RELATIVE
public static final int FLAG_ALLOW_RELATIVE- See Also:
-
FLAG_ALLOW_ABSOLUTE
public static final int FLAG_ALLOW_ABSOLUTE- See Also:
-
FLAG_ALLOW_NON_LOCAL
public static final int FLAG_ALLOW_NON_LOCAL- See Also:
-
FLAG_ALLOW_EMBEDDED_DATA
public static final int FLAG_ALLOW_EMBEDDED_DATA- See Also:
-
flags
private final int flags
-
-
Constructor Details
-
DefaultResourcePolicy
public DefaultResourcePolicy(int flags)
-
-
Method Details
-
allowsExternalResources
public boolean allowsExternalResources() -
resolveResourceURI
@Nullable public @Nullable URI resolveResourceURI(@Nullable @Nullable URI baseURI, @NotNull @NotNull String path) - Specified by:
resolveResourceURIin interfaceResourcePolicy
-
resolveResourceURI
@Nullable public @Nullable URI resolveResourceURI(@Nullable @Nullable URI baseDocumentUri, @NotNull @NotNull URI resourceUri) - Specified by:
resolveResourceURIin interfaceResourcePolicy
-