| Package | Description |
|---|---|
| com.openhtmltopdf.extend | |
| com.openhtmltopdf.outputdevice.helper | |
| com.openhtmltopdf.swing |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
UserAgentCallback.getBinaryResource(String uri,
ExternalResourceType type)
Retrieves a binary resource located at a given URI and returns its contents
as a byte array or
null if the resource could not be loaded. |
CSSResource |
UserAgentCallback.getCSSResource(String uri,
ExternalResourceType type) |
ImageResource |
UserAgentCallback.getImageResource(String uri,
ExternalResourceType type) |
XMLResource |
UserAgentCallback.getXMLResource(String uri,
ExternalResourceType type)
Retrieves the XML at the given URI.
|
| Modifier and Type | Field and Description |
|---|---|
BiPredicate<String,ExternalResourceType> |
BaseRendererBuilder.BaseRendererBuilderState._afterAccessController |
BiPredicate<String,ExternalResourceType> |
BaseRendererBuilder.BaseRendererBuilderState._beforeAccessController |
| Modifier and Type | Method and Description |
|---|---|
static ExternalResourceType |
ExternalResourceType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExternalResourceType[] |
ExternalResourceType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
TFinalClass |
BaseRendererBuilder.useExternalResourceAccessControl(BiPredicate<String,ExternalResourceType> allowExternalResource,
ExternalResourceControlPriority priority)
Allows to set one external access controller to run
before the uri resolver and one to run after the uri resolver.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<ExternalResourceControlPriority,BiPredicate<String,ExternalResourceType>> |
NaiveUserAgent._accessControllers |
| Modifier and Type | Method and Description |
|---|---|
boolean |
NaiveUserAgent.checkAccessAllowed(String uriOrResolved,
ExternalResourceType type,
ExternalResourceControlPriority priority) |
byte[] |
NaiveUserAgent.getBinaryResource(String uri,
ExternalResourceType type) |
CSSResource |
NaiveUserAgent.getCSSResource(String uri,
ExternalResourceType type)
Retrieves the CSS located at the given URI.
|
abstract ImageResource |
NaiveUserAgent.getImageResource(String uri,
ExternalResourceType type) |
XMLResource |
NaiveUserAgent.getXMLResource(String uri,
ExternalResourceType type)
Retrieves the XML located at the given URI.
|
boolean |
NaiveUserAgent.DefaultAccessController.test(String uri,
ExternalResourceType resourceType) |
| Modifier and Type | Method and Description |
|---|---|
void |
NaiveUserAgent.setAccessController(ExternalResourceControlPriority prio,
BiPredicate<String,ExternalResourceType> controller) |
Copyright © 2004–2025. All rights reserved.