ConfigurationMBean
, DescriptorBean
, javax.management.DynamicMBean
, javax.management.MBeanRegistration
, javax.management.NotificationBroadcaster
, SettableBean
, WebLogicMBean
public interface XMLEntitySpecRegistryEntryMBean extends ConfigurationMBean
An Entity Spec Entry specifies how to resolve an external entity based its public and system IDs.
When WebLogic Server is parsing an XML document and it encounters the specified external entity, WebLogic Server resolves the entity according to the values entered for this entry. You can specify that the external entity resolve to a particular resource whose location is either a pathname reachable by the Administration Server or a URI to a local repository.
An Entity Spec entry is part of an XML Registry.
For this type of registry entry the document type is identified by either or both of:
This configuration information is used by the WebLogic JAXP implementation to set up SAX EntityResolvers.
DEFAULT_EMPTY_BYTE_ARRAY
Modifier and Type | Method | Description |
---|---|---|
int |
getCacheTimeoutInterval() |
Specifies the default timeout interval (in seconds) of the external
entity cache.
|
java.lang.String |
getEntityURI() |
The location of the external entity, either a pathname or URI.
|
java.lang.String |
getHandleEntityInvalidation() |
Whether cached DTD/schema is invalidated when parsing error is encountered.
|
java.lang.String |
getPublicId() |
The public ID of the external entity.
|
java.lang.String |
getSystemId() |
The system ID of the external entity.
|
java.lang.String |
getWhenToCache() |
Specifies when WebLogic Server should cache the external entities
it retrieves from the Web.
|
void |
setCacheTimeoutInterval(int interval) |
Sets the value of the CacheTimeoutInterval attribute.
|
void |
setEntityURI(java.lang.String uri) |
Sets the value of the EntityURI attribute.
|
void |
setHandleEntityInvalidation(java.lang.String enabled) |
Sets if cached DTD/schema is invalidated when parsing error is encountered.
|
void |
setPublicId(java.lang.String publicId) |
Set the public id of the document type represented by this
registry entry.
|
void |
setSystemId(java.lang.String systemId) |
Set the system id of the document type represented by this
registry entry.
|
void |
setWhenToCache(java.lang.String cacheOnDeploy) |
Sets the value of the WhenToCache attribute.
|
freezeCurrentValue, getId, getInheritedProperties, getName, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListener
getAttribute, getAttributes, invoke, setAttribute, setAttributes
postDeregister, postRegister, preDeregister, preRegister
addNotificationListener, getNotificationInfo, removeNotificationListener
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent
java.lang.String getPublicId()
The public ID of the external entity.
When WebLogic Server is parsing an XML document and it encounters an external entity with this public ID, WebLogic Server resolves the entity (to either a local file or a URL resource) according to the values set for this Entity spec entry.
void setPublicId(java.lang.String publicId) throws javax.management.InvalidAttributeValueException
Set the public id of the document type represented by this registry entry.
publicId
- The new publicId valuejavax.management.InvalidAttributeValueException
java.lang.String getSystemId()
The system ID of the external entity.
When WebLogic Server is parsing an XML document and it encounters an external entity with this system ID, WebLogic Server resolves the entity (to either a local file or a URL resource) according to the values set for this Entity spec entry.
void setSystemId(java.lang.String systemId) throws javax.management.InvalidAttributeValueException
Set the system id of the document type represented by this registry entry.
systemId
- The new systemId valuejavax.management.InvalidAttributeValueException
java.lang.String getEntityURI()
The location of the external entity, either a pathname or URI.
The location of the external entity can be either a pathname relative to the XML Registry directories, reachable by the Administration Server, or a URI of the entity location in some local repository.
void setEntityURI(java.lang.String uri) throws javax.management.InvalidAttributeValueException
Sets the value of the EntityURI attribute.
uri
- The new entityURI valuejavax.management.InvalidAttributeValueException
java.lang.String getWhenToCache()
Specifies when WebLogic Server should cache the external entities it retrieves from the Web.
WebLogic Server can cache the entities when they are referenced, as soon as possible (that is, on initialization) or never. Additionally, WebLogic Server can defer to the XML registry's cache setting.
void setWhenToCache(java.lang.String cacheOnDeploy)
Sets the value of the WhenToCache attribute.
cacheOnDeploy
- The new whenToCache valueint getCacheTimeoutInterval()
Specifies the default timeout interval (in seconds) of the external entity cache.
A value of -1
means that the entity cache
timeout interval defers to the one specified for the XML
registry of which this Entity Spec entry is a part.
void setCacheTimeoutInterval(int interval) throws javax.management.InvalidAttributeValueException
Sets the value of the CacheTimeoutInterval attribute.
interval
- The new cacheTimeoutInterval valuejavax.management.InvalidAttributeValueException
java.lang.String getHandleEntityInvalidation()
Whether cached DTD/schema is invalidated when parsing error is encountered.
void setHandleEntityInvalidation(java.lang.String enabled)
Sets if cached DTD/schema is invalidated when parsing error is encountered.
enabled
- true string if invalidation enabled, otherwise false string.
If setting defer-to-registry-setting string, then the value is inherited
from parent mbean.