org.openrdf.server.metadata.cache
Class FileResponse
java.lang.Object
org.openrdf.server.metadata.cache.InMemoryResponseHeader
org.openrdf.server.metadata.cache.FileResponse
- All Implemented Interfaces:
- HttpServletResponse, ServletResponse
public class FileResponse
- extends InMemoryResponseHeader
| Fields inherited from interface javax.servlet.http.HttpServletResponse |
SC_ACCEPTED, SC_BAD_GATEWAY, SC_BAD_REQUEST, SC_CONFLICT, SC_CONTINUE, SC_CREATED, SC_EXPECTATION_FAILED, SC_FORBIDDEN, SC_FOUND, SC_GATEWAY_TIMEOUT, SC_GONE, SC_HTTP_VERSION_NOT_SUPPORTED, SC_INTERNAL_SERVER_ERROR, SC_LENGTH_REQUIRED, SC_METHOD_NOT_ALLOWED, SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_MULTIPLE_CHOICES, SC_NO_CONTENT, SC_NON_AUTHORITATIVE_INFORMATION, SC_NOT_ACCEPTABLE, SC_NOT_FOUND, SC_NOT_IMPLEMENTED, SC_NOT_MODIFIED, SC_OK, SC_PARTIAL_CONTENT, SC_PAYMENT_REQUIRED, SC_PRECONDITION_FAILED, SC_PROXY_AUTHENTICATION_REQUIRED, SC_REQUEST_ENTITY_TOO_LARGE, SC_REQUEST_TIMEOUT, SC_REQUEST_URI_TOO_LONG, SC_REQUESTED_RANGE_NOT_SATISFIABLE, SC_RESET_CONTENT, SC_SEE_OTHER, SC_SERVICE_UNAVAILABLE, SC_SWITCHING_PROTOCOLS, SC_TEMPORARY_REDIRECT, SC_UNAUTHORIZED, SC_UNSUPPORTED_MEDIA_TYPE, SC_USE_PROXY |
| Methods inherited from class org.openrdf.server.metadata.cache.InMemoryResponseHeader |
addCookie, addDateHeader, addIntHeader, containsHeader, getContentType, getDate, getHeader, getHeaders, getLastModified, getLocale, getStatus, getStatusText, sendError, sendError, sendRedirect, setCharacterEncoding, setContentLength, setContentType, setDateHeader, setIntHeader, setLocale |
FileResponse
public FileResponse(String url,
HttpServletRequest req,
HttpServletResponse res,
File dir,
Lock lock)
isCachable
public boolean isCachable()
isModified
public boolean isModified()
getMethod
public String getMethod()
getUrl
public String getUrl()
getEntityTag
public String getEntityTag()
getMessageBody
public File getMessageBody()
setStatus
public void setStatus(int sc,
String sm)
- Specified by:
setStatus in interface HttpServletResponse- Overrides:
setStatus in class InMemoryResponseHeader
setStatus
public void setStatus(int sc)
- Specified by:
setStatus in interface HttpServletResponse- Overrides:
setStatus in class InMemoryResponseHeader
setHeader
public void setHeader(String name,
String value)
- Specified by:
setHeader in interface HttpServletResponse- Overrides:
setHeader in class InMemoryResponseHeader
addHeader
public void addHeader(String name,
String value)
- Specified by:
addHeader in interface HttpServletResponse- Overrides:
addHeader in class InMemoryResponseHeader
getOutputStream
public ServletOutputStream getOutputStream()
throws IOException
- Throws:
IOException
getWriter
public PrintWriter getWriter()
throws IOException
- Throws:
IOException
flushBuffer
public void flushBuffer()
throws IOException
- Throws:
IOException
encodeRedirectUrl
public String encodeRedirectUrl(String arg0)
encodeRedirectURL
public String encodeRedirectURL(String arg0)
encodeUrl
public String encodeUrl(String arg0)
encodeURL
public String encodeURL(String arg0)
getBufferSize
public int getBufferSize()
isCommitted
public boolean isCommitted()
setBufferSize
public void setBufferSize(int arg0)
getCharacterEncoding
public String getCharacterEncoding()
reset
public void reset()
resetBuffer
public void resetBuffer()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2004-2009 James Leigh Services Inc.. All Rights Reserved.