com.nordija.tapestry.bayeux.stream
Class StreamService
java.lang.Object
com.nordija.tapestry.bayeux.stream.StreamService
- All Implemented Interfaces:
- org.apache.tapestry.engine.IEngineService
public class StreamService
- extends java.lang.Object
- implements org.apache.tapestry.engine.IEngineService
A service which can render links to stream resources and accept incoming requests
from such links, looking up the stream resource and dispatching to the resource.
This service depends on the definition of a tapestry-extension which must point to a
implementation of StreamResourceSource
. Please see docs for further info.
- Version:
- $Id: StreamService.java 124 2007-06-02 11:36:55Z jeyben $
- Author:
- Per Olesen www.nordija.com
Method Summary |
org.apache.tapestry.engine.ILink |
getLink(boolean post,
java.lang.Object parameter)
|
java.lang.String |
getName()
|
void |
service(org.apache.tapestry.IRequestCycle cycle)
|
void |
setLinkFactory(org.apache.tapestry.services.LinkFactory linkFactory)
|
void |
setRequest(org.apache.tapestry.web.WebRequest webRequest)
|
void |
setRequestCycle(org.apache.tapestry.IRequestCycle requestCycle)
|
void |
setResponse(javax.servlet.http.HttpServletResponse response)
|
protected void |
streamResource(StreamResource resource)
|
protected void |
triggerComponent(org.apache.tapestry.IRequestCycle cycle,
IStream stream,
java.lang.String streamResourceSourceExtName,
java.lang.Object[] parameters)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVICE_NAME
public static final java.lang.String SERVICE_NAME
- See Also:
- Constant Field Values
RESOURCE_ID_PARAM_NAME
public static final java.lang.String RESOURCE_ID_PARAM_NAME
- See Also:
- Constant Field Values
STREAM_RESOURCE_SOURCE_EXT_PARAM_NAME
public static final java.lang.String STREAM_RESOURCE_SOURCE_EXT_PARAM_NAME
- See Also:
- Constant Field Values
BAYEUX_STREAM_EXTENTIONS_PREFIX
public static final java.lang.String BAYEUX_STREAM_EXTENTIONS_PREFIX
- See Also:
- Constant Field Values
DEFAULT_RESOURCE_SOURCE_NAME
public static final java.lang.String DEFAULT_RESOURCE_SOURCE_NAME
- See Also:
- Constant Field Values
StreamService
public StreamService()
setResponse
public void setResponse(javax.servlet.http.HttpServletResponse response)
setLinkFactory
public void setLinkFactory(org.apache.tapestry.services.LinkFactory linkFactory)
getName
public java.lang.String getName()
- Specified by:
getName
in interface org.apache.tapestry.engine.IEngineService
getLink
public org.apache.tapestry.engine.ILink getLink(boolean post,
java.lang.Object parameter)
- Specified by:
getLink
in interface org.apache.tapestry.engine.IEngineService
service
public void service(org.apache.tapestry.IRequestCycle cycle)
throws java.io.IOException
- Specified by:
service
in interface org.apache.tapestry.engine.IEngineService
- Throws:
java.io.IOException
triggerComponent
protected void triggerComponent(org.apache.tapestry.IRequestCycle cycle,
IStream stream,
java.lang.String streamResourceSourceExtName,
java.lang.Object[] parameters)
throws java.io.IOException
- Throws:
java.io.IOException
streamResource
protected void streamResource(StreamResource resource)
throws java.io.IOException
- Throws:
java.io.IOException
setRequest
public void setRequest(org.apache.tapestry.web.WebRequest webRequest)
setRequestCycle
public void setRequestCycle(org.apache.tapestry.IRequestCycle requestCycle)
Copyright © 2004-2007 Nordija A/S. All Rights Reserved.