|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Context
This is the WebDAV-repository context.
| Method Summary | |
|---|---|
Connection |
getConnection()
The connection to the database. |
String |
getContextUrl()
The URL up to the context path specified in the request. |
XMLStreamWriter |
getDavResponseWriter()
An alternative DAV response message writer. |
boolean |
getDebug()
Returns true if debug mode is on, false
otherwise. |
String |
getDefaultLanguage()
The language attributed to the request when none was specified. |
String |
getDestinationView()
The view specified in the Destination header. |
String[] |
getLanguages()
The preferred languages from most to least preferred or an empty array. |
String |
getLocalPath(String href)
Returns the path without the server context. |
Map<String,String[]> |
getLockTokens()
The keys in the result are local paths and the values are arrays of UUID strings. |
Context |
getNamingContext()
The naming context that was initialized for the containing web application. |
long |
getQuota()
Returns the maximum total logical space in bytes the system is allowed to occupy. |
HttpServletRequest |
getRequest()
The servlet request. |
Object |
getRequestContext(Object key)
|
String |
getRequestLanguage()
The language set with the lang URL parameter. |
HttpServletResponse |
getResponse()
The servlet response. |
ServletContext |
getServletContext()
The servlet context. |
int |
getStatusCode()
The status code set by the server or -1 if it was not set or isn't supported by the implementation. |
File |
getTemporaryDirectory()
The directory where temporary files may be created. |
String |
getView()
If no view is selected by the request, null is returned. |
void |
setDavResponseWriter(XMLStreamWriter writer)
|
void |
setRequestContext(Object key,
Object context)
An implementation may attach additional data which travels along with the context. |
void |
setRollbackOnly()
After a call to this method the transaction can no longer be committed. |
void |
setView(String view)
The implementation can switch to another view. |
| Method Detail |
|---|
Connection getConnection()
String getContextUrl()
XMLStreamWriter getDavResponseWriter()
null. Modules can set it in the context of a
request.
boolean getDebug()
true if debug mode is on, false
otherwise.
String getDefaultLanguage()
String getDestinationView()
Destination header. This is only
relevant for the COPY and MOVE methods.
String[] getLanguages()
String getLocalPath(String href)
href is null, null is returned.
If href is not in the same server context as the repository,
null is returned.
Map<String,String[]> getLockTokens()
Context getNamingContext()
long getQuota()
-1 indicates there is no limit.
HttpServletRequest getRequest()
Object getRequestContext(Object key)
setRequestContext(java.lang.Object, java.lang.Object)String getRequestLanguage()
lang URL parameter. If it isn't
specified the Content-Language is considered.
This preceeds over getLanguages, i.e. the latter should only
be consulted if the request language isn't set.
HttpServletResponse getResponse()
ServletContext getServletContext()
int getStatusCode()
String getView()
null is returned.
File getTemporaryDirectory()
void setDavResponseWriter(XMLStreamWriter writer)
void setRequestContext(Object key,
Object context)
void setRollbackOnly()
void setView(String view)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||