|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tivo.hme.sdk.Factory
com.blackledge.david.tivo.multitasker.MultiTaskerApplicationFactory
public class MultiTaskerApplicationFactory
Multitasker Factory - handle local files as streams and automatic reformatting of local images as streams. Support handling of "local/" urls to return filestreams of files under the "local file root" as defined in options. and "localimage/" urls to return a stream containing the local image file, but scaled to fit in tivo requirements.
package com.foo; public class MP3Player extends Application { public
static class MP3PlayerFactory extends Factory { … } }
getAppFactory() Method static com.tivo.hme.interfaces.IFactory getAppFactory( java.lang.String appClassName, java.lang.ClassLoader loader, com.tivo.hme.interfaces.IArgumentList args)
| Field Summary |
|---|
| Fields inherited from class com.tivo.hme.sdk.Factory |
|---|
active, assetURI, clazz, factoryData, isActive, listener, loader, title, uri |
| Fields inherited from interface com.tivo.hme.interfaces.IFactory |
|---|
HME_APPLICATION_CLASSNAME, HME_DEBUG_KEY, HME_VERSION_TAG |
| Constructor Summary | |
|---|---|
MultiTaskerApplicationFactory()
MultiTasker's Application factory. |
|
| Method Summary | |
|---|---|
protected void |
addHeaders(com.tivo.hme.interfaces.IHttpRequest http,
String uri)
|
String |
getShortMappedUri(String uri)
Record a short mapping url in the factory that will return the resource that would have been returned by the passed in uri, except it's maybe too long. |
InputStream |
getStream(String uri2)
If you override, just be sure to allow this (super) implementation to handle url's that are myapp/local. |
String |
getUnmappedUri(String shortUri)
Undo the work of getShortMappedUri(String). |
boolean |
isHandledUri(String uri)
|
| Methods inherited from class com.tivo.hme.sdk.Factory |
|---|
addApplication, close, createApplication, destroyFactory, fetchAsset, getActiveCount, getAppName, getAppTitle, getAssetURI, getFactoryData, getQuery, getSeekTime, getTitle, getURI, init, initFactory, isActive, log, removeApplication, removeQueryFromURI, setActive, setAppName, setAppTitle, setAssetURI, setListener, setTitle, setURI, shutdown, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultiTaskerApplicationFactory()
| Method Detail |
|---|
public boolean isHandledUri(String uri)
public InputStream getStream(String uri2) throws IOException
getUnmappedUri(String) on the uri to handle any short
mapping that may have been done.
getStream in class com.tivo.hme.sdk.FactoryIOExceptionFactory.getStream(java.lang.String)
protected void addHeaders(com.tivo.hme.interfaces.IHttpRequest http,
String uri)
throws IOException
addHeaders in class com.tivo.hme.sdk.FactoryIOExceptionpublic String getShortMappedUri(String uri)
uri -
public String getUnmappedUri(String shortUri)
getShortMappedUri(String).
shortUri - the result of the call to
getShortMappedUri(String)
getShortMappedUri(String) or shortUri if no mapping
exists.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||