org.globus.ogsa.server
Class ServiceThread
java.lang.Object
java.lang.Thread
org.globus.ogsa.server.ServiceThread
- All Implemented Interfaces:
- java.lang.Runnable
- public class ServiceThread
- extends java.lang.Thread
This class is responsible for reading the request from the request queue, format it, and pass it
through the Axis engine.
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
|
Method Summary |
protected byte[] |
doFault(java.lang.Exception e,
MessageContext msgContext,
java.lang.String filepart)
|
protected void |
doGet(AxisEngine engine,
MessageContext msgContext,
java.io.OutputStream out,
java.lang.String filePart,
boolean returnContent)
|
protected void |
doPost(AxisEngine engine,
MessageContext msgContext)
|
protected void |
doWSDL(AxisEngine engine,
MessageContext msgContext,
java.io.OutputStream out)
|
protected java.lang.String |
getProtocol()
|
boolean |
matches(byte[] buf,
byte[] target)
does tolower[buf] match the target byte array, up to the target's length? |
boolean |
matches(byte[] buf,
int bufIdx,
byte[] target)
Case-insensitive match of a target byte [] to a source byte [],
starting from a particular offset into the source. |
protected void |
process(ServiceRequest request)
|
void |
run()
|
| 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 |
msgContext
protected MessageContext msgContext
HTTP
protected static byte[] HTTP
UNAUTH
protected static byte[] UNAUTH
HTML_MIME_STUFF
protected static byte[] HTML_MIME_STUFF
JNLP_MIME_STUFF
protected static byte[] JNLP_MIME_STUFF
JAR_MIME_STUFF
protected static byte[] JAR_MIME_STUFF
SEPARATOR
protected static byte[] SEPARATOR
ServiceThread
public ServiceThread(ServiceRequestQueue queue,
ServiceThreadPool pool,
AxisEngine engine)
run
public void run()
getProtocol
protected java.lang.String getProtocol()
process
protected void process(ServiceRequest request)
doWSDL
protected void doWSDL(AxisEngine engine,
MessageContext msgContext,
java.io.OutputStream out)
throws AxisFault,
java.io.IOException
- Throws:
AxisFault
java.io.IOException
doGet
protected void doGet(AxisEngine engine,
MessageContext msgContext,
java.io.OutputStream out,
java.lang.String filePart,
boolean returnContent)
throws java.io.IOException
- Throws:
java.io.IOException
doPost
protected void doPost(AxisEngine engine,
MessageContext msgContext)
throws AxisFault
- Throws:
AxisFault
doFault
protected byte[] doFault(java.lang.Exception e,
MessageContext msgContext,
java.lang.String filepart)
matches
public boolean matches(byte[] buf,
byte[] target)
- does tolower[buf] match the target byte array, up to the target's length?
matches
public boolean matches(byte[] buf,
int bufIdx,
byte[] target)
- Case-insensitive match of a target byte [] to a source byte [],
starting from a particular offset into the source.