Package nl.info.webdav.methods
Class DoGet
java.lang.Object
nl.info.webdav.methods.AbstractMethod
nl.info.webdav.methods.DoHead
nl.info.webdav.methods.DoGet
- All Implemented Interfaces:
IMethodExecutor
-
Field Summary
Fields inherited from class nl.info.webdav.methods.DoHead
_contentLength, _dftIndexFile, _insteadOf404, _mimeTyper, _resourceLocks, _storeFields inherited from class nl.info.webdav.methods.AbstractMethod
BUF_SIZE, CREATION_DATE_FORMAT, DEFAULT_TIMEOUT, INFINITY, LAST_MODIFIED_DATE_FORMAT, LOCAL_DATE_FORMAT, MAX_TIMEOUT, TEMP_TIMEOUT, TEMPORARY, URL_ENCODER -
Constructor Summary
ConstructorsConstructorDescriptionDoGet(IWebdavStore store, String dftIndexFile, String insteadOf404, ResourceLocks resourceLocks, IMimeTyper mimeTyper, int contentLengthHeader) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoBody(ITransaction transaction, jakarta.servlet.http.HttpServletResponse resp, String path) protected voidfolderBody(ITransaction transaction, String path, jakarta.servlet.http.HttpServletResponse resp, jakarta.servlet.http.HttpServletRequest req) protected StringgetCSS()Return the CSS styles used to display the HTML representation of the webdav content.protected DateFormatgetDateTimeFormat(Locale browserLocale) Return this as the Date/Time format for displaying Creation + Modification datesprotected StringgetFooter(ITransaction transaction, String path, jakarta.servlet.http.HttpServletResponse resp, jakarta.servlet.http.HttpServletRequest req) Return the footer to be displayed after the folder contentprotected StringgetHeader(ITransaction transaction, String path, jakarta.servlet.http.HttpServletResponse resp, jakarta.servlet.http.HttpServletRequest req) Return the header to be displayed in front of the folder contentMethods inherited from class nl.info.webdav.methods.AbstractMethod
checkLocks, creationDateFormat, getCleanPath, getDepth, getDocumentBuilder, getETag, getLocalDateFormat, getLockIdFromIfHeader, getLockIdFromLockTokenHeader, getParentPath, getRelativePath, lastModifiedDateFormat, rewriteUrl, sendReport
-
Constructor Details
-
DoGet
public DoGet(IWebdavStore store, String dftIndexFile, String insteadOf404, ResourceLocks resourceLocks, IMimeTyper mimeTyper, int contentLengthHeader)
-
-
Method Details
-
doBody
protected void doBody(ITransaction transaction, jakarta.servlet.http.HttpServletResponse resp, String path) -
folderBody
protected void folderBody(ITransaction transaction, String path, jakarta.servlet.http.HttpServletResponse resp, jakarta.servlet.http.HttpServletRequest req) throws IOException - Overrides:
folderBodyin classDoHead- Throws:
IOException
-
getCSS
Return the CSS styles used to display the HTML representation of the webdav content.- Returns:
- the CSS styles
-
getHeader
protected String getHeader(ITransaction transaction, String path, jakarta.servlet.http.HttpServletResponse resp, jakarta.servlet.http.HttpServletRequest req) Return the header to be displayed in front of the folder content- Parameters:
transaction- the transactionpath- the pathresp- the http responsereq- the http request- Returns:
- the header
-
getDateTimeFormat
Return this as the Date/Time format for displaying Creation + Modification dates- Parameters:
browserLocale- the browser locale- Returns:
- DateFormat used to display creation and modification dates
-