public class RepositoryContentView extends Object implements org.springframework.web.servlet.View
Modifier and Type | Field and Description |
---|---|
static String |
DOWNLOAD_PARAMETER
Use this parameter to set a file to be attached instead of inline.
|
static String |
MODEL_ATTRIBUTE_BINARY_CONTENT
Constant for the model map.
|
Constructor and Description |
---|
RepositoryContentView()
|
RepositoryContentView(String characterEncoding) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
void |
render(Map model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public static final String DOWNLOAD_PARAMETER
public static final String MODEL_ATTRIBUTE_BINARY_CONTENT
BinaryContentTO
and this
will contain the data for download.public RepositoryContentView()
public RepositoryContentView(String characterEncoding)
characterEncoding
- The character encoding this view should set.public String getContentType()
getContentType
in interface org.springframework.web.servlet.View
Copyright © 2019 Communote team. All rights reserved.