org.apache.synapse.config
Class Entry

java.lang.Object
  extended by 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
static int INLINE_TEXT
           
static int INLINE_XML
           
static int REMOTE_ENTRY
           
static int URL_SRC
           
 
Constructor Summary
Entry()
           
Entry(String key)
           
 
Method Summary
 void clearCache()
           
 String getDescription()
          Retrieves the description of the artifact
 Properties getEntryProperties()
           
 long getExpiryTime()
           
 String getFileName()
           
 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 setDescription(String description)
          Set the description of the artifact
 void setEntryProperties(Properties entryProperties)
           
 void setExpiryTime(long expiryTime)
           
 void setFileName(String fileName)
           
 void setKey(String key)
           
 void setMapper(XMLToObjectMapper mapper)
          Set the mapper
 void setSrc(URL src)
           
 void setType(int type)
           
 void setValue(Object value)
           
 void setVersion(long version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface SynapseArtifact
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 interface SynapseArtifact
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()


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.