nl.gx.webmanager.springmvc.view
Class WmDownloadModel

java.lang.Object
  extended by nl.gx.webmanager.springmvc.view.WmDownloadModel

public class WmDownloadModel
extends java.lang.Object

Author:
johntd

Field Summary
static java.lang.String DOWNLOAD_MODEL_KEY
          KEY for setting this onject on the model
static java.lang.String WM_DOWNLOAD_VIEWNAME
          viewname to indicate a download the download viewresolver will check this exact name before resolving the downloadview
 
Constructor Summary
WmDownloadModel()
           
 
Method Summary
 java.lang.String getContentType()
          get the content type form this download.
 java.io.InputStream getDownloadInputStream()
          get the input source for the download view resolver
 java.util.HashMap<java.lang.String,java.lang.String> getHeaders()
          get the http header to be set for this download
 void setContentType(java.lang.String contentType)
          Sets the content type for this download.
 void setDownloadInputStream(java.io.InputStream inputStream)
          set the inputstream to be downloaded.
 void setHeaders(java.util.HashMap<java.lang.String,java.lang.String> headers)
          set http headers for this download
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOWNLOAD_MODEL_KEY

public static final java.lang.String DOWNLOAD_MODEL_KEY
KEY for setting this onject on the model

See Also:
Constant Field Values

WM_DOWNLOAD_VIEWNAME

public static final java.lang.String WM_DOWNLOAD_VIEWNAME
viewname to indicate a download the download viewresolver will check this exact name before resolving the downloadview

See Also:
Constant Field Values
Constructor Detail

WmDownloadModel

public WmDownloadModel()
Method Detail

setDownloadInputStream

public void setDownloadInputStream(java.io.InputStream inputStream)
set the inputstream to be downloaded. this stream is the input source for he viewresolver to send to the client

Parameters:
inputStream - open inputsteam to send to the client

getDownloadInputStream

public java.io.InputStream getDownloadInputStream()
get the input source for the download view resolver

Returns:
open inputstream

setContentType

public void setContentType(java.lang.String contentType)
Sets the content type for this download.

Parameters:
contentType - contenttype

getContentType

public java.lang.String getContentType()
get the content type form this download.

Returns:
contenttype as String

setHeaders

public void setHeaders(java.util.HashMap<java.lang.String,java.lang.String> headers)
set http headers for this download

Parameters:
headers -

getHeaders

public java.util.HashMap<java.lang.String,java.lang.String> getHeaders()
get the http header to be set for this download

Returns:
hashmap holding the optional header, never null


Copyright © 2007-2011 GX Software BV. All Rights Reserved.