org.globus.ogsa.server
Class ServiceThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.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.


Field Summary
protected static byte[] HTML_MIME_STUFF
           
protected static byte[] HTTP
           
protected static byte[] JAR_MIME_STUFF
           
protected static byte[] JNLP_MIME_STUFF
           
protected  org.apache.axis.MessageContext msgContext
           
protected static byte[] SEPARATOR
           
protected static byte[] UNAUTH
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ServiceThread(ServiceRequestQueue queue, ServiceThreadPool pool, org.apache.axis.AxisEngine engine)
           
 
Method Summary
protected  byte[] doFault(java.lang.Exception e, org.apache.axis.MessageContext msgContext, java.lang.String filepart)
           
protected  void doGet(org.apache.axis.AxisEngine engine, org.apache.axis.MessageContext msgContext, java.io.OutputStream out, java.lang.String filePart, boolean returnContent)
           
protected  void doPost(org.apache.axis.AxisEngine engine, org.apache.axis.MessageContext msgContext)
           
protected  void doWSDL(org.apache.axis.AxisEngine engine, org.apache.axis.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
 

Field Detail

msgContext

protected org.apache.axis.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
Constructor Detail

ServiceThread

public ServiceThread(ServiceRequestQueue queue,
                     ServiceThreadPool pool,
                     org.apache.axis.AxisEngine engine)
Method Detail

run

public void run()

getProtocol

protected java.lang.String getProtocol()

process

protected void process(ServiceRequest request)

doWSDL

protected void doWSDL(org.apache.axis.AxisEngine engine,
                      org.apache.axis.MessageContext msgContext,
                      java.io.OutputStream out)
               throws org.apache.axis.AxisFault,
                      java.io.IOException
Throws:
org.apache.axis.AxisFault
java.io.IOException

doGet

protected void doGet(org.apache.axis.AxisEngine engine,
                     org.apache.axis.MessageContext msgContext,
                     java.io.OutputStream out,
                     java.lang.String filePart,
                     boolean returnContent)
              throws java.io.IOException
Throws:
java.io.IOException

doPost

protected void doPost(org.apache.axis.AxisEngine engine,
                      org.apache.axis.MessageContext msgContext)
               throws org.apache.axis.AxisFault
Throws:
org.apache.axis.AxisFault

doFault

protected byte[] doFault(java.lang.Exception e,
                         org.apache.axis.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.



Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.