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 int
INLINE_TEXT
static int
INLINE_XML
static int
REMOTE_ENTRY
static int
URL_SRC
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCache()
String
getArtifactContainerName()
String
getDescription()
Retrieves the description of the artifactProperties
getEntryProperties()
long
getExpiryTime()
String
getFileName()
boolean
getIsEdited()
String
getKey()
XMLToObjectMapper
getMapper()
URL
getSrc()
int
getType()
Object
getValue()
Gets the value of the entry.long
getVersion()
boolean
isCached()
boolean
isDynamic()
boolean
isExpired()
boolean
isInlineText()
boolean
isInlineXML()
boolean
isRemote()
boolean
isURLSource()
void
setArtifactContainerName(String artifactContainerName)
void
setDescription(String description)
Set the description of the artifactvoid
setEntryProperties(Properties entryProperties)
void
setExpiryTime(long expiryTime)
void
setFileName(String fileName)
void
setIsEdited(boolean isEdited)
void
setKey(String key)
void
setMapper(XMLToObjectMapper mapper)
Set the mappervoid
setSrc(URL src)
void
setType(int type)
void
setValue(Object value)
void
setVersion(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:SynapseArtifact
Retrieves the description of the artifact- Specified by:
getDescription
in interfaceSynapseArtifact
- Returns:
- description of the artifact
-
setDescription
public void setDescription(String description)
Description copied from interface:SynapseArtifact
Set the description of the artifact- Specified by:
setDescription
in 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)
-
-