Package org.drjekyll.webdav.methods
Class DoGet
- java.lang.Object
-
- org.drjekyll.webdav.methods.Method
-
- org.drjekyll.webdav.methods.DoHead
-
- org.drjekyll.webdav.methods.DoGet
-
- All Implemented Interfaces:
MethodExecutor
public class DoGet extends DoHead
-
-
Field Summary
-
Fields inherited from class org.drjekyll.webdav.methods.Method
BUF_SIZE, CREATION_DATE_FORMAT, DEFAULT_TIMEOUT, INFINITY, LAST_MODIFIED_DATE_FORMAT, LOCAL_DATE_FORMAT, MAX_TIMEOUT, TEMP_TIMEOUT, TEMPORARY, URL_ENCODER
-
-
Constructor Summary
Constructors Constructor Description DoGet(WebdavStore store, String dftIndexFile, String insteadOf404, ResourceLocks resourceLocks, MimeTyper mimeTyper, int contentLengthHeader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doBody(Transaction transaction, javax.servlet.http.HttpServletResponse resp, String path)
protected void
folderBody(Transaction transaction, String path, javax.servlet.http.HttpServletResponse resp, javax.servlet.http.HttpServletRequest req)
protected String
getCSS()
Return the CSS styles used to display the HTML representation of the webdav content.protected DateFormat
getDateTimeFormat(Locale browserLocale)
Return this as the Date/Time format for displaying Creation + Modification datesprotected String
getFooter(Transaction transaction, String path, javax.servlet.http.HttpServletResponse resp, javax.servlet.http.HttpServletRequest req)
Return the footer to be displayed after the folder contentprotected String
getHeader(Transaction transaction, String path, javax.servlet.http.HttpServletResponse resp, javax.servlet.http.HttpServletRequest req)
Return the header to be displayed in front of the folder content-
Methods inherited from class org.drjekyll.webdav.methods.Method
checkLocks, creationDateFormat, getCleanPath, getDepth, getDocumentBuilder, getETag, getLocalDateFormat, getLockIdFromIfHeader, getLockIdFromLockTokenHeader, getParentPath, getRelativePath, lastModifiedDateFormat, rewriteUrl, sendReport
-
-
-
-
Constructor Detail
-
DoGet
public DoGet(WebdavStore store, String dftIndexFile, String insteadOf404, ResourceLocks resourceLocks, MimeTyper mimeTyper, int contentLengthHeader)
-
-
Method Detail
-
doBody
protected void doBody(Transaction transaction, javax.servlet.http.HttpServletResponse resp, String path)
-
folderBody
protected void folderBody(Transaction transaction, String path, javax.servlet.http.HttpServletResponse resp, javax.servlet.http.HttpServletRequest req) throws IOException
- Overrides:
folderBody
in classDoHead
- Throws:
IOException
-
getDateTimeFormat
protected DateFormat getDateTimeFormat(Locale browserLocale)
Return this as the Date/Time format for displaying Creation + Modification dates- Parameters:
browserLocale
-- Returns:
- DateFormat used to display creation and modification dates
-
getCSS
protected String getCSS()
Return the CSS styles used to display the HTML representation of the webdav content.- Returns:
-
getHeader
protected String getHeader(Transaction transaction, String path, javax.servlet.http.HttpServletResponse resp, javax.servlet.http.HttpServletRequest req)
Return the header to be displayed in front of the folder content- Parameters:
transaction
-path
-resp
-req
-- Returns:
-
getFooter
protected String getFooter(Transaction transaction, String path, javax.servlet.http.HttpServletResponse resp, javax.servlet.http.HttpServletRequest req)
Return the footer to be displayed after the folder content- Parameters:
transaction
-path
-resp
-req
-- Returns:
-
-