|
XFA4J | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.adobe.xfa.service.Service
com.adobe.xfa.service.href.HrefService
public class HrefService
A class to handle all href related actions in an XFA based form.
| Field Summary | |
|---|---|
static int |
CACHE_SIZE
The default cache size, in bytes. |
| Constructor Summary | |
|---|---|
HrefService(Node contextNode,
int nHrefCacheSize)
Instantiates a new HrefService using a specified
contextNode as the context for resolving
relative references. |
|
HrefService(java.lang.String sConfigSchemaName,
int nHrefCacheSize)
Instantiates a new HrefService using the configuration
to determine the node that will service as the context for resolving
relative references. |
|
| Method Summary | |
|---|---|
java.lang.String |
getBaseUrl()
Gets the base URL that relative hrefs will be resolved against. |
Model |
getDocument(AppModel appModel)
Gets the TemplateModel associated with the
given AppModel. |
AppModel |
loadFragment(AppModel appModel,
java.lang.String sUrl)
Resolves a URL and loads the reference XFA document into a new AppModel. |
AppModel |
loadFragment(ProtoableNode protoableNode)
Resolves the usehref attribute in the given ProtoableNode and
loads the referenced document into a new AppModel. |
void |
setBaseUrl(java.lang.String sBaseUrl)
Sets the base URL that relative hrefs will be resolved against. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CACHE_SIZE
| Constructor Detail |
|---|
public HrefService(Node contextNode,
int nHrefCacheSize)
HrefService using a specified
contextNode as the context for resolving
relative references.
contextNode - the context node for resolving relative references.nHrefCacheSize - the maximum size of the cache of URL bytes. If negative,
no caching is done. If zero, CACHE_SIZE is used.
public HrefService(java.lang.String sConfigSchemaName,
int nHrefCacheSize)
HrefService using the configuration
to determine the node that will service as the context for resolving
relative references.
sConfigSchemaName - the name of the configuration element containing
the template.base and template.uri elements that
describe how relative references are to be resolved.nHrefCacheSize - the maximum size of the cache of URL bytes. If negative,
no caching is done. If zero, CACHE_SIZE is used.| Method Detail |
|---|
public AppModel loadFragment(ProtoableNode protoableNode)
usehref attribute in the given ProtoableNode and
loads the referenced document into a new AppModel.
Any fragment identifier in the URL is ignored.
loadFragment in interface HrefHandlerprotoableNode - a ProtoableNode with a usehref attribute.
AppModel containing the document loaded
from the referenced location, or null upon error.
public AppModel loadFragment(AppModel appModel,
java.lang.String sUrl)
AppModel.
Any fragment identifier in the URL is ignored.
loadFragment in interface HrefHandlerappModel - the AppModel containing the URLsUrl - the URL that references the external XFA document
AppModel containing the document loaded
from the referenced location.public Model getDocument(AppModel appModel)
TemplateModel associated with the
given AppModel.
getDocument in interface HrefHandlerappModel - an AppModel
TemplateModel from appModel
or null if there is no TemplateModel.public final java.lang.String getBaseUrl()
public final void setBaseUrl(java.lang.String sBaseUrl)
sBaseUrl - a URL to resolve relative hrefs against.
|
XFA4J | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||