Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jext
Class JextLoader  view JextLoader download JextLoader.java

java.lang.Object
  extended byorg.jext.JextLoader
All Implemented Interfaces:
java.lang.Runnable

final class JextLoader
extends java.lang.Object
implements java.lang.Runnable

This class creates a new socket connection which listens to client requests. Whenever a client logs onto the socket, we check its IP address.
Security implementation:

Version:
1.1.1

Field Summary
private  java.io.File auth
           
private  java.lang.String key
           
private  int port
           
private  java.net.ServerSocket server
           
private  java.lang.Thread tServer
           
 
Constructor Summary
(package private) JextLoader()
           
 
Method Summary
protected  void finalize()
          Patch -> Memory management improvements : it may help the garbage collector.
private  void intrusion()
           
 void run()
          Waits for a connexion request and handle it.
 void stop()
          Stops the server by inerrupting the thread, killing it and then closing the server itself.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

private int port

auth

private java.io.File auth

key

private java.lang.String key

tServer

private java.lang.Thread tServer

server

private java.net.ServerSocket server
Constructor Detail

JextLoader

JextLoader()
Method Detail

stop

public void stop()
Stops the server by inerrupting the thread, killing it and then closing the server itself. Finally, it erases the authorization key.


run

public void run()
Waits for a connexion request and handle it. The client should provide a special line containing a message, the arguments for the loading and the authorization key. This key is used to avoid security holes in your system.

Specified by:
run in interface java.lang.Runnable

intrusion

private void intrusion()

finalize

protected void finalize()
                 throws java.lang.Throwable
Patch -> Memory management improvements : it may help the garbage collector. -> Author : Julien Ponge (julien@izforge.com) -> Date : 23, May 2001