com.nordija.tapestry.bayeux.stream
Class StreamAsset

java.lang.Object
  extended by com.nordija.tapestry.bayeux.stream.StreamAsset
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.tapestry.IAsset

public class StreamAsset
extends java.lang.Object
implements org.apache.tapestry.IAsset

Asset capable of streaming data by invoking the stream service that will delegate the responsibility to the given streamResourceSourceExtentionName.

Author:
Jacob von Eyben - Nordija A/S

Constructor Summary
StreamAsset(org.apache.tapestry.engine.IEngineService streamService, java.lang.String streamResourceSourceExtentionName, java.lang.Object[] parameters, IStream stream)
           
 
Method Summary
 java.lang.String buildURL()
           
protected  org.apache.tapestry.engine.ILink getLink()
           
 org.apache.hivemind.Location getLocation()
           
 java.io.InputStream getResourceAsStream()
           
 org.apache.hivemind.Resource getResourceLocation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamAsset

public StreamAsset(org.apache.tapestry.engine.IEngineService streamService,
                   java.lang.String streamResourceSourceExtentionName,
                   java.lang.Object[] parameters,
                   IStream stream)
Method Detail

buildURL

public java.lang.String buildURL()
Specified by:
buildURL in interface org.apache.tapestry.IAsset

getResourceAsStream

public java.io.InputStream getResourceAsStream()
Specified by:
getResourceAsStream in interface org.apache.tapestry.IAsset

getResourceLocation

public org.apache.hivemind.Resource getResourceLocation()
Specified by:
getResourceLocation in interface org.apache.tapestry.IAsset

getLocation

public org.apache.hivemind.Location getLocation()
Specified by:
getLocation in interface org.apache.hivemind.Locatable

getLink

protected org.apache.tapestry.engine.ILink getLink()


Copyright © 2004-2007 Nordija A/S. All Rights Reserved.