org.xiruss.xirussrepository.server.jetty
Class XirussHttpHandlerBase

java.lang.Object
  extended by org.mortbay.http.handler.AbstractHttpHandler
      extended by 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

Field Summary
protected  boolean _acceptRanges
           
protected  boolean _dirAllowed
           
protected  org.mortbay.http.handler.ResourceHandler baseResHandler
           
protected static org.apache.log4j.Logger logger
           
protected  XirussRepository rep
           
 
Constructor Summary
XirussHttpHandlerBase()
           
 
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
 

Field Detail

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
Constructor Detail

XirussHttpHandlerBase

public XirussHttpHandlerBase()
Method Detail

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: