net.sf.fmj.media.protocol.httpauth
Class DataSource
java.lang.Object
   javax.media.protocol.DataSource
javax.media.protocol.DataSource
       javax.media.protocol.PullDataSource
javax.media.protocol.PullDataSource
           net.sf.fmj.media.protocol.httpauth.DataSource
net.sf.fmj.media.protocol.httpauth.DataSource
- All Implemented Interfaces: 
- Controls, Duration, SourceCloneable
- public class DataSource 
- extends PullDataSource- implements SourceCloneable
HTTPAUTH (pseudo-) protocol handler DataSource.
 This is a pseudo-protocol that allows the username and password for an http datasource to be specified in the URL.
 Copied and modified from URLDataSource.
 The syntax for an httpauth URL is derived from an http URL as follows:
 http://myipcameraimage.com/cam
 with username "user" and password "pass" would become
 httpauth:user:pass@//myipcameraimage.com/cam
 This is simply a convenience data source.  It allows things like FMJ studio to play IP camera streams that are password protected, without having to prompt the user.
- Author:
- Ken Larson
| Field Summary | 
| protected  net.sf.fmj.media.protocol.httpauth.DataSource.URLSourceStream[] | sources
 | 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
sources
protected net.sf.fmj.media.protocol.httpauth.DataSource.URLSourceStream[] sources
DataSource
public DataSource()
DataSource
public DataSource(java.net.URL url)
createClone
public DataSource createClone()
- Description copied from interface: SourceCloneable
- Based on JMF testing, the clone is in the same state as the original (opened and connected if the original is), but at the beginning of the media, not whatever position the original is.
 
- 
- Specified by:
- createClonein interface- SourceCloneable
 
- 
 
getStreams
public PullSourceStream[] getStreams()
- 
- Specified by:
- getStreamsin class- PullDataSource
 
- 
 
connect
public void connect()
             throws java.io.IOException
- 
- Specified by:
- connectin class- DataSource
 
- 
- Throws:
- java.io.IOException
 
getContentType
public java.lang.String getContentType()
- 
- Specified by:
- getContentTypein class- DataSource
 
- 
 
disconnect
public void disconnect()
- 
- Specified by:
- disconnectin class- DataSource
 
- 
 
start
public void start()
           throws java.io.IOException
- 
- Specified by:
- startin class- DataSource
 
- 
- Throws:
- java.io.IOException
 
stop
public void stop()
          throws java.io.IOException
- 
- Specified by:
- stopin class- DataSource
 
- 
- Throws:
- java.io.IOException
 
getDuration
public Time getDuration()
- 
- Specified by:
- getDurationin interface- Duration
- Specified by:
- getDurationin class- DataSource
 
- 
 
getControls
public java.lang.Object[] getControls()
- 
- Specified by:
- getControlsin interface- Controls
- Specified by:
- getControlsin class- DataSource
 
- 
 
getControl
public java.lang.Object getControl(java.lang.String controlName)
- 
- Specified by:
- getControlin interface- Controls
- Specified by:
- getControlin class- DataSource
 
-