Package org.apache.synapse.config
Class Entry
- java.lang.Object
-
- org.apache.synapse.config.Entry
-
- All Implemented Interfaces:
SynapseArtifact
public class Entry extends Object implements SynapseArtifact
Represents an Entry contained in the local registry used by Synapse- See Also:
SynapseConfiguration.localRegistry
-
-
Field Summary
Fields Modifier and Type Field Description static intINLINE_TEXTstatic intINLINE_XMLstatic intREMOTE_ENTRYstatic intURL_SRC
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearCache()StringgetArtifactContainerName()StringgetDescription()Retrieves the description of the artifactPropertiesgetEntryProperties()longgetExpiryTime()StringgetFileName()booleangetIsEdited()StringgetKey()XMLToObjectMappergetMapper()URLgetSrc()intgetType()ObjectgetValue()Gets the value of the entry.longgetVersion()booleanisCached()booleanisDynamic()booleanisExpired()booleanisInlineText()booleanisInlineXML()booleanisRemote()booleanisURLSource()voidsetArtifactContainerName(String artifactContainerName)voidsetDescription(String description)Set the description of the artifactvoidsetEntryProperties(Properties entryProperties)voidsetExpiryTime(long expiryTime)voidsetFileName(String fileName)voidsetIsEdited(boolean isEdited)voidsetKey(String key)voidsetMapper(XMLToObjectMapper mapper)Set the mappervoidsetSrc(URL src)voidsetType(int type)voidsetValue(Object value)voidsetVersion(long version)
-
-
-
Field Detail
-
INLINE_TEXT
public static final int INLINE_TEXT
- See Also:
- Constant Field Values
-
INLINE_XML
public static final int INLINE_XML
- See Also:
- Constant Field Values
-
URL_SRC
public static final int URL_SRC
- See Also:
- Constant Field Values
-
REMOTE_ENTRY
public static final int REMOTE_ENTRY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Entry
public Entry()
-
Entry
public Entry(String key)
-
-
Method Detail
-
getType
public int getType()
-
isRemote
public boolean isRemote()
-
isURLSource
public boolean isURLSource()
-
isInlineXML
public boolean isInlineXML()
-
isInlineText
public boolean isInlineText()
-
setType
public void setType(int type)
-
getSrc
public URL getSrc()
-
setSrc
public void setSrc(URL src)
-
getKey
public String getKey()
-
setKey
public void setKey(String key)
-
getValue
public Object getValue()
Gets the value of the entry. String if the type is INLINE_TEXT or VALUE_TYPE, OMElement otherwise.- Returns:
- Either an OMElement or a String
-
setValue
public void setValue(Object value)
-
getMapper
public XMLToObjectMapper getMapper()
- Returns:
- mapper
-
setMapper
public void setMapper(XMLToObjectMapper mapper)
Set the mapper- Parameters:
mapper- XMLToObjectMapper instance
-
getVersion
public long getVersion()
-
setVersion
public void setVersion(long version)
-
getExpiryTime
public long getExpiryTime()
-
setExpiryTime
public void setExpiryTime(long expiryTime)
-
getFileName
public String getFileName()
-
setFileName
public void setFileName(String fileName)
-
getDescription
public String getDescription()
Description copied from interface:SynapseArtifactRetrieves the description of the artifact- Specified by:
getDescriptionin interfaceSynapseArtifact- Returns:
- description of the artifact
-
setDescription
public void setDescription(String description)
Description copied from interface:SynapseArtifactSet the description of the artifact- Specified by:
setDescriptionin interfaceSynapseArtifact- Parameters:
description- tobe set to the artifact
-
getEntryProperties
public Properties getEntryProperties()
-
setEntryProperties
public void setEntryProperties(Properties entryProperties)
-
isExpired
public boolean isExpired()
-
isCached
public boolean isCached()
-
clearCache
public void clearCache()
-
isDynamic
public boolean isDynamic()
-
getArtifactContainerName
public String getArtifactContainerName()
-
setArtifactContainerName
public void setArtifactContainerName(String artifactContainerName)
-
getIsEdited
public boolean getIsEdited()
-
setIsEdited
public void setIsEdited(boolean isEdited)
-
-