@Controller public class AbstractBinaryController extends Object
binaryRootFolder.
The first request will be time consuming as the cached version of the
file needs to be written to filesystem. For every subsequent request
the cached version will be served.
The request mapping supports an array of strings, but we need a way
to configure this without modifying source code.
Important Note: concrete implementing classes will need to add the
@RequestMapping annotations!| Constructor and Description |
|---|
AbstractBinaryController() |
| Modifier and Type | Method and Description |
|---|---|
void |
getBinary(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected String |
getBinaryPath(javax.servlet.http.HttpServletRequest request) |
boolean |
isRemoveContextPath() |
boolean |
isUseBinaryStorage() |
void |
setBinaryRootFolder(String binaryRootFolder) |
void |
setRemoveContextPath(boolean removeContextPath) |
void |
setUseBinaryStorage(boolean useBinaryStorage) |
public void getBinary(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws ItemNotFoundException
ItemNotFoundExceptionprotected String getBinaryPath(javax.servlet.http.HttpServletRequest request)
public void setBinaryRootFolder(String binaryRootFolder)
public boolean isUseBinaryStorage()
public void setUseBinaryStorage(boolean useBinaryStorage)
public boolean isRemoveContextPath()
public void setRemoveContextPath(boolean removeContextPath)
removeContextPath - the removeContextPath to setCopyright © 2018. All rights reserved.