org.xiruss.xirussrepository.server.jetty
Class XirussHttpHandlerBase
java.lang.Object
org.mortbay.http.handler.AbstractHttpHandler
org.xiruss.xirussrepository.server.jetty.XirussHttpHandlerBase
- All Implemented Interfaces:
- java.io.Serializable, org.mortbay.http.HttpHandler, org.mortbay.util.LifeCycle
- Direct Known Subclasses:
- XirussHttpApiHandler, XirussHttpHandler
public abstract class XirussHttpHandlerBase
- extends org.mortbay.http.handler.AbstractHttpHandler
- See Also:
- Serialized Form
Method Summary |
void |
sendData(org.mortbay.http.HttpRequest request,
org.mortbay.http.HttpResponse response,
java.lang.String pathInContext,
org.mortbay.util.Resource resource,
boolean writeHeaders)
|
protected void |
setAllowHeader(org.mortbay.http.HttpResponse response)
|
static java.util.Vector<java.lang.String> |
tokenizePath(java.lang.String path)
Tokenizes the path string. |
void |
writeHeaders(org.mortbay.http.HttpResponse response,
org.mortbay.util.Resource resource,
long count)
|
Methods inherited from class org.mortbay.http.handler.AbstractHttpHandler |
getHttpContext, getName, handleTrace, initialize, isStarted, setName, start, stop, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.mortbay.http.HttpHandler |
handle |
logger
protected static org.apache.log4j.Logger logger
baseResHandler
protected org.mortbay.http.handler.ResourceHandler baseResHandler
rep
protected XirussRepository rep
_dirAllowed
protected boolean _dirAllowed
_acceptRanges
protected boolean _acceptRanges
XirussHttpHandlerBase
public XirussHttpHandlerBase()
sendData
public void sendData(org.mortbay.http.HttpRequest request,
org.mortbay.http.HttpResponse response,
java.lang.String pathInContext,
org.mortbay.util.Resource resource,
boolean writeHeaders)
throws java.io.IOException
- Parameters:
request
- response
- pathInContext
- resource
- b
-
- Throws:
java.io.IOException
writeHeaders
public void writeHeaders(org.mortbay.http.HttpResponse response,
org.mortbay.util.Resource resource,
long count)
throws java.io.IOException
- Throws:
java.io.IOException
setAllowHeader
protected void setAllowHeader(org.mortbay.http.HttpResponse response)
tokenizePath
public static java.util.Vector<java.lang.String> tokenizePath(java.lang.String path)
- Tokenizes the path string. The string should be URL encoded so that path
tokens that are themselves otherwise valid path tokens will be handled
correctly.
- Parameters:
string
-
- Returns: