jreceiver.common.rec.source
Class MexternalRec
java.lang.Object
|
+--jreceiver.common.rec.BaseRec
|
+--jreceiver.common.rec.source.SourceRec
|
+--jreceiver.common.rec.source.MexternalRec
- All Implemented Interfaces:
- Hashable, Mexternal, Rec, Source
- public class MexternalRec
- extends SourceRec
- implements Mexternal
Concrete implementation of an offsite source
- Version:
- $Revision: 1.7 $ $Date: 2003/04/27 23:14:31 $
- Author:
- Reed Esau
Fields inherited from interface jreceiver.common.rec.source.Source |
DEFAULT_URL, FORCE_PLAYLIST_URL, HKEY_CONTENT_URL, HKEY_DIRECT_URI, HKEY_DST_MIME, HKEY_DURATION, HKEY_MIME, HKEY_SITE_ID, HKEY_SRC_ID, HKEY_SRC_TYPE, HKEY_TITLE, MAX_SRC_ID, MIN_SRC_ID, POPULATE_CONTENT_URL, POPULATE_DIRECT_URI, POPULATE_MEXTERNAL, POPULATE_MFILE, SRCTYPE_PLAYLIST, SRCTYPE_TUNE, SRCTYPE_UNDEFINED |
Constructor Summary |
MexternalRec(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via XML-RPC |
MexternalRec(int src_id,
java.lang.String title,
int src_type,
java.lang.String src_mime,
org.esau.ptarmigan.util.PtarURI direct_uri,
java.net.URL content_url,
boolean cache_data)
ctor |
Method Summary |
boolean |
getCacheData()
Obtain the cache data flag |
void |
setCacheData(boolean cache_data)
Assign the cache data flag |
java.util.Hashtable |
toHash()
Store the object as a hash suitable for
transport over an XML-RPC connection or similar. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class jreceiver.common.rec.source.SourceRec |
createInstance, getContentSystemId, getContentURL, getDirectSystemId, getDirectURI, getDstMime, getDuration, getFile, getFileExtension, getFileName, getFilePath, getIsLocal, getIsOffsite, getIsPlaylist, getIsTune, getKey, getMime, getSiteId, getSrcId, getTitle, getType, setContentURL, setDirectURI, setDirectURI, setDuration, setKey, setMime, setSrcId, setTitle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jreceiver.common.rec.source.Source |
getContentSystemId, getContentURL, getDirectSystemId, getDirectURI, getDstMime, getDuration, getFile, getFileExtension, getFileName, getFilePath, getIsLocal, getIsOffsite, getIsPlaylist, getIsTune, getMime, getSiteId, getSrcId, getTitle, getType, setContentURL, setDirectURI, setDirectURI, setDuration, setMime, setSrcId, setTitle |
m_cache_data
protected boolean m_cache_data
MexternalRec
public MexternalRec(int src_id,
java.lang.String title,
int src_type,
java.lang.String src_mime,
org.esau.ptarmigan.util.PtarURI direct_uri,
java.net.URL content_url,
boolean cache_data)
- ctor
MexternalRec
public MexternalRec(java.util.Hashtable hash)
throws RecException
- ctor - construct from a hashtable, usually retrieved via XML-RPC
getCacheData
public boolean getCacheData()
- Obtain the cache data flag
- Specified by:
getCacheData
in interface Mexternal
setCacheData
public void setCacheData(boolean cache_data)
- Assign the cache data flag
- Specified by:
setCacheData
in interface Mexternal
toString
public java.lang.String toString()
- Description copied from interface:
Hashable
- Returns a string representation of the object.
- Specified by:
toString
in interface Hashable
- Overrides:
toString
in class SourceRec
toHash
public java.util.Hashtable toHash()
- Store the object as a hash suitable for
transport over an XML-RPC connection or similar.
Use MexternalRec(Hashtable)
to transform the data
back into an object of this type.
- Specified by:
toHash
in interface Hashable
- Overrides:
toHash
in class SourceRec
- Returns:
-
Copyright © 2001-2002 Reed Esau, All Rights Reserved.