net.sourceforge.pebble.web.view
Class ZipView
java.lang.Object
net.sourceforge.pebble.web.view.View
net.sourceforge.pebble.web.view.BinaryView
net.sourceforge.pebble.web.view.ZipView
public class ZipView
- extends BinaryView
Represents a binary view component and prepares the model for display.
- Author:
- Simon Brown
Constructor Summary |
ZipView(java.util.List files,
java.lang.String filename)
|
Method Summary |
void |
dispatch(HttpServletRequest request,
HttpServletResponse response,
ServletContext context)
Dispatches this view. |
long |
getContentLength()
|
java.lang.String |
getContentType()
Gets the title of this view. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipView
public ZipView(java.util.List files,
java.lang.String filename)
getContentType
public java.lang.String getContentType()
- Gets the title of this view.
- Specified by:
getContentType
in class View
- Returns:
- the title as a String
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in class BinaryView
dispatch
public void dispatch(HttpServletRequest request,
HttpServletResponse response,
ServletContext context)
throws ServletException
- Dispatches this view.
- Specified by:
dispatch
in class View
- Parameters:
request
- the HttpServletRequest instanceresponse
- the HttpServletResponse instancecontext
-
- Throws:
ServletException
Copyright © 2003-2006, Simon Brown. All Rights Reserved.