sf.net.kayestry
Class DownloadService

java.lang.Object
  extended by org.apache.tapestry.engine.AbstractService
      extended by sf.net.kayestry.DynamicDocumentService
          extended by sf.net.kayestry.DownloadService
All Implemented Interfaces:
org.apache.tapestry.engine.IEngineService

public abstract class DownloadService
extends DynamicDocumentService

Devuelve un documento para que el usuario descargue. La forma de realizar el download es agregando un par de headers a la respuesta. TODO: segun una pagina, IE 4.01 tiene un bug que hace que no funcione esta manera de hacer download y no hay solucion. y que con el 5.5 pasa algo parecido, pero upgradeando a sp2 anda. Ver que funciona realmente y que no y sacarlo del todo y ponerlo como doc. El nombre del servicio que devuelve esta clase es "download". Si se desea crear una subclase con diferente nombre de servicio, sobreescribir getName.

Author:
lparra

Constructor Summary
DownloadService()
           
DownloadService(java.lang.String serviceName)
           
 
Method Summary
protected  void setHeaders(java.util.Map ctx, javax.servlet.http.HttpServletResponse response)
          Agrega los headers necesarios a la respuesta.
 
Methods inherited from class sf.net.kayestry.DynamicDocumentService
getAttachName, getDocumentStream, getLink, getMimeType, getName, init, sendDocument, service
 
Methods inherited from class org.apache.tapestry.engine.AbstractService
constructLink, getParameters, getServiceContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadService

public DownloadService()

DownloadService

public DownloadService(java.lang.String serviceName)
Method Detail

setHeaders

protected void setHeaders(java.util.Map ctx,
                          javax.servlet.http.HttpServletResponse response)
Description copied from class: DynamicDocumentService
Agrega los headers necesarios a la respuesta.

Overrides:
setHeaders in class DynamicDocumentService


Copyright © 2006 Kaya. All Rights Reserved.