com.objectwave.socketClassServer
Class ServeClassRequest

java.lang.Object
  |
  +--com.objectwave.simpleSockets.ServeClient
        |
        +--com.objectwave.socketClassServer.ServeClassRequest
All Implemented Interfaces:
java.lang.Runnable

public class ServeClassRequest
extends ServeClient

Send class definitions via sockets. It will only find classes that are accessible from the classpath. It will not look in ZIP nor JAR files.

Version:
$Id: ServeClassRequest.java,v 2.0 2001/06/11 15:54:25 dave_hoag Exp $
Author:
dhoag

Field Summary
 
Fields inherited from class com.objectwave.simpleSockets.ServeClient
alive, debug, id, server, socket, thread
 
Constructor Summary
ServeClassRequest(ObjectServer server, int id, java.lang.Thread t)
          Constructor for the ServeClassRequest object
 
Method Summary
protected  java.lang.String formatClassName(java.lang.String className)
          Map the package name to the class.
protected  void processClassRequest(java.lang.String fullClassName)
          Send a stream of bytes that can be used to define the class.
protected  java.lang.String processRequest(java.lang.String fullClassName)
          Important.
protected  void processResourceRequest()
          Send a resource that was requested via getContent();
protected  void processStreamRequest()
          Send a resource that was requested via getInputStream()
 
Methods inherited from class com.objectwave.simpleSockets.ServeClient
bind, emitReply, emitReplyStream, getName, handleSocketException, isBound, kill, loop, loopForBinding, pause, processRequestStream, run, runConnection, terminateConnection, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServeClassRequest

public ServeClassRequest(ObjectServer server,
                         int id,
                         java.lang.Thread t)
Constructor for the ServeClassRequest object

Parameters:
server -
id -
t -
Method Detail

formatClassName

protected java.lang.String formatClassName(java.lang.String className)
Map the package name to the class. Also add .class to the end of the class name.

Parameters:
className -
Returns:

processClassRequest

protected void processClassRequest(java.lang.String fullClassName)
Send a stream of bytes that can be used to define the class.

Parameters:
fullClassName -

processRequest

protected java.lang.String processRequest(java.lang.String fullClassName)
Important. Entry point for processing Requests from an SocketClassLoader.

Overrides:
processRequest in class ServeClient
Parameters:
fullClassName -
Returns:

processResourceRequest

protected void processResourceRequest()
Send a resource that was requested via getContent();


processStreamRequest

protected void processStreamRequest()
Send a resource that was requested via getInputStream()