Module com.github.weisj.jsvg
Class DefaultResourcePolicy
- java.lang.Object
-
- com.github.weisj.jsvg.parser.resources.impl.DefaultResourcePolicy
-
- All Implemented Interfaces:
ResourcePolicy
public class DefaultResourcePolicy extends java.lang.Object implements ResourcePolicy
-
-
Field Summary
Fields Modifier and Type Field Description static int
FLAG_ALLOW_ABSOLUTE
static int
FLAG_ALLOW_EMBEDDED_DATA
static int
FLAG_ALLOW_NON_LOCAL
static int
FLAG_ALLOW_RELATIVE
private int
flags
private static java.util.logging.Logger
LOGGER
-
Fields inherited from interface com.github.weisj.jsvg.parser.resources.ResourcePolicy
ALLOW_ALL, ALLOW_RELATIVE, DENY_ALL, DENY_EXTERNAL
-
-
Constructor Summary
Constructors Constructor Description DefaultResourcePolicy(int flags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowsExternalResources()
@Nullable java.net.URI
resolveResourceURI(@Nullable java.net.URI baseURI, @NotNull java.lang.String path)
@Nullable java.net.URI
resolveResourceURI(@Nullable java.net.URI baseDocumentUri, @NotNull java.net.URI resourceUri)
-
-
-
Field Detail
-
LOGGER
private static final java.util.logging.Logger LOGGER
-
FLAG_ALLOW_RELATIVE
public static final int FLAG_ALLOW_RELATIVE
- See Also:
- Constant Field Values
-
FLAG_ALLOW_ABSOLUTE
public static final int FLAG_ALLOW_ABSOLUTE
- See Also:
- Constant Field Values
-
FLAG_ALLOW_NON_LOCAL
public static final int FLAG_ALLOW_NON_LOCAL
- See Also:
- Constant Field Values
-
FLAG_ALLOW_EMBEDDED_DATA
public static final int FLAG_ALLOW_EMBEDDED_DATA
- See Also:
- Constant Field Values
-
flags
private final int flags
-
-
Method Detail
-
allowsExternalResources
public boolean allowsExternalResources()
-
resolveResourceURI
@Nullable public @Nullable java.net.URI resolveResourceURI(@Nullable @Nullable java.net.URI baseURI, @NotNull @NotNull java.lang.String path)
- Specified by:
resolveResourceURI
in interfaceResourcePolicy
-
resolveResourceURI
@Nullable public @Nullable java.net.URI resolveResourceURI(@Nullable @Nullable java.net.URI baseDocumentUri, @NotNull @NotNull java.net.URI resourceUri)
- Specified by:
resolveResourceURI
in interfaceResourcePolicy
-
-