|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.exist.http.HttpServerConnection
Description of the Class
Field Summary | |
protected DBBroker |
broker
|
protected Configuration |
config
|
protected javax.xml.parsers.DocumentBuilder |
docBuilder
|
protected XPathParser |
parser
|
protected org.exist.http.HttpServer.ConnectionPool |
pool
|
protected javax.xml.parsers.SAXParser |
sax
|
protected java.net.Socket |
sock
|
protected boolean |
terminate
|
protected java.lang.String |
tmpDir
|
protected User |
user
|
protected java.lang.String |
xslStyle
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
HttpServerConnection(Configuration config,
org.exist.http.HttpServer.ConnectionPool pool)
Constructor for the HttpServerConnection object |
Method Summary | |
protected void |
doGet(java.util.HashMap parameters,
java.lang.String name,
int len)
Description of the Method |
protected java.lang.String |
doPost(java.lang.String request,
java.lang.String name)
Description of the Method |
protected void |
errorReply(int code)
Description of the Method |
protected void |
errorReply(int code,
java.lang.String message)
Description of the Method |
protected java.lang.String |
formatErrorMsg(java.lang.String message,
int status)
Description of the Method |
protected void |
get(java.lang.String name,
int len)
Description of the Method |
protected void |
post(java.lang.String input,
java.lang.String name,
int len,
java.lang.String contentType)
Description of the Method |
protected java.lang.String |
printAll(org.w3c.dom.NodeList resultSet,
int howmany,
int start,
long queryTime,
boolean indent,
java.lang.String stylesheet)
Description of the Method |
protected java.lang.String |
printCollection(java.lang.String collection,
java.lang.String[] names)
Description of the Method |
protected java.lang.String |
printSummary(org.w3c.dom.NodeList resultSet,
long queryTime)
Description of the Method |
protected java.lang.String |
printValues(ValueSet resultSet,
int howmany,
int start)
Description of the Method |
void |
process(java.net.Socket sock)
Description of the Method |
protected java.util.HashMap |
processParameters(java.lang.String args)
Description of the Method |
protected void |
put(java.io.File tempFile,
java.lang.String name,
int len)
Description of the Method |
void |
run()
Main processing method for the HttpServerConnection object |
protected java.lang.String |
search(java.lang.String query,
int howmany,
int start,
boolean printSummary,
boolean indent,
java.lang.String stylesheet)
Description of the Method |
void |
terminate()
Description of the Method |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected DBBroker broker
protected Configuration config
protected javax.xml.parsers.DocumentBuilder docBuilder
protected XPathParser parser
protected org.exist.http.HttpServer.ConnectionPool pool
protected javax.xml.parsers.SAXParser sax
protected java.net.Socket sock
protected boolean terminate
protected java.lang.String tmpDir
protected User user
protected java.lang.String xslStyle
Constructor Detail |
public HttpServerConnection(Configuration config, org.exist.http.HttpServer.ConnectionPool pool)
config
- Description of the Parameterpool
- Description of the ParameterMethod Detail |
protected void doGet(java.util.HashMap parameters, java.lang.String name, int len)
parameters
- Description of the Parametername
- Description of the Parameterlen
- Description of the Parameterprotected java.lang.String doPost(java.lang.String request, java.lang.String name)
request
- Description of the Parametername
- Description of the Parameter
protected void errorReply(int code)
code
- Description of the Parameterprotected void errorReply(int code, java.lang.String message)
code
- Description of the Parametermessage
- Description of the Parameterprotected java.lang.String formatErrorMsg(java.lang.String message, int status)
message
- Description of the Parameterstatus
- Description of the Parameter
protected void get(java.lang.String name, int len)
name
- Description of the Parameterlen
- Description of the Parameterprotected void post(java.lang.String input, java.lang.String name, int len, java.lang.String contentType)
input
- Description of the Parametername
- Description of the Parameterlen
- Description of the ParametercontentType
- Description of the Parameterprotected java.lang.String printAll(org.w3c.dom.NodeList resultSet, int howmany, int start, long queryTime, boolean indent, java.lang.String stylesheet)
resultSet
- Description of the Parameterhowmany
- Description of the Parameterstart
- Description of the ParameterqueryTime
- Description of the Parameterindent
- Description of the Parameterstylesheet
- Description of the Parameter
protected java.lang.String printCollection(java.lang.String collection, java.lang.String[] names)
collection
- Description of the Parameternames
- Description of the Parameter
protected java.lang.String printSummary(org.w3c.dom.NodeList resultSet, long queryTime)
resultSet
- Description of the ParameterqueryTime
- Description of the Parameter
protected java.lang.String printValues(ValueSet resultSet, int howmany, int start)
resultSet
- Description of the Parameterhowmany
- Description of the Parameterstart
- Description of the Parameter
public void process(java.net.Socket sock)
sock
- Description of the Parameterprotected java.util.HashMap processParameters(java.lang.String args)
args
- Description of the Parameter
protected void put(java.io.File tempFile, java.lang.String name, int len)
tempFile
- Description of the Parametername
- Description of the Parameterlen
- Description of the Parameterpublic void run()
java.lang.RuntimeException
- DOCUMENT ME!protected java.lang.String search(java.lang.String query, int howmany, int start, boolean printSummary, boolean indent, java.lang.String stylesheet)
query
- Description of the Parameterhowmany
- Description of the Parameterstart
- Description of the ParameterprintSummary
- Description of the Parameterindent
- Description of the Parameterstylesheet
- Description of the Parameter
public void terminate()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |