com.nordija.tapestry.bayeux.downloads
Class DownloadService
java.lang.Object
com.nordija.tapestry.bayeux.downloads.DownloadService
- All Implemented Interfaces:
- org.apache.tapestry.engine.IEngineService
public class DownloadService
- extends java.lang.Object
- implements org.apache.tapestry.engine.IEngineService
A service which can render links to download resources and accept incoming requests
from such links, looking up the download resource and dispatching to the resource.
This service depends on the definition of a tapestry-extension which must point to a
implementation of DownloadResourceSource
. Please see docs for further info.
- Version:
- $Id: DownloadService.java 76 2007-05-14 17:12:15Z 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 |
setResponse(javax.servlet.http.HttpServletResponse response)
|
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
DOWNLOAD_RESOURCE_SOURCE_EXT_PARAM_NAME
public static final java.lang.String DOWNLOAD_RESOURCE_SOURCE_EXT_PARAM_NAME
- See Also:
- Constant Field Values
BAYEUX_DOWNLOADS_EXTENTIONS_PREFIX
public static final java.lang.String BAYEUX_DOWNLOADS_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
DownloadService
public DownloadService()
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
Copyright © 2004-2007 Nordija A/S. All Rights Reserved.