DownloadLink.jwc 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright 2004 The Apache Software Foundation
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <!DOCTYPE component-specification PUBLIC
  15. "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
  16. "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
  17. <component-specification class="jeus.tool.webadmin.component.DownloadLink">
  18. <parameter name="listener" required="yes"/>
  19. <parameter name="parameters">
  20. <description>
  21. An object, or list of objects, encoded into the URL
  22. as listener parameters (and made available to the ulimate listener object
  23. or method).
  24. </description>
  25. </parameter>
  26. <parameter name="stateful" default-value="true"/>
  27. <parameter name="disabled"/>
  28. <parameter name="anchor"/>
  29. <parameter name="target"/>
  30. <parameter name="renderer"/>
  31. <parameter name="contentType" default-value="literal:application/octet-stream"/>
  32. <parameter name="fileName" default-value="literal:Noname"/>
  33. <reserved-parameter name="href"/>
  34. <parameter name="scheme">
  35. <description>
  36. Forces the link to be generated as an absolute URL with the given scheme
  37. (unless the scheme matches the scheme for the current request).
  38. </description>
  39. </parameter>
  40. <parameter name="port">
  41. <description>
  42. Forces the link to be generated as an absolute URL with the given port
  43. (unless the port matches the port for the current request).
  44. </description>
  45. </parameter>
  46. <inject property="listenerInvoker" object="infrastructure:listenerInvoker"/>
  47. <inject object="service:webadmin.Download" property="engine"/>
  48. </component-specification>