idman.mngt.impl
Class HttpExport

java.lang.Object
  |
  +--idman.mngt.impl.HttpExport
All Implemented Interfaces:
java.lang.Runnable

public class HttpExport
extends java.lang.Object
implements java.lang.Runnable

Webdarstellung von Datenbankinhalten und Verbindungen. Diese Klasse diente in der frühen Entwicklungszeit dem Debugging. Sie sollte nicht weiter benutzt werden, da sie keinerlei Sicherheitsfunktionen enthält. Es wird für alle ein ServerSocket geöffnet auf dem über HTTP einige Daten abrufbar sind.

Version:
$Id: HttpExport.java,v 1.10 2003/10/24 06:51:14 tk4 Exp $
Author:
Thomas Kriegelstein

Field Summary
static boolean debug
          Debugflag.
protected  boolean local
           
protected  idman.mngt.Management manager
           
protected  int port
           
protected  java.util.Properties settings
           
protected  java.net.ServerSocket ss
           
 
Constructor Summary
HttpExport()
          Konstruktor.
HttpExport(int port, java.util.Properties p, idman.mngt.Management manager)
          Konstruktor.
 
Method Summary
static void main(java.lang.String[] args)
          Testmethode.
protected  void print404(java.io.PrintWriter pw)
           
protected  void print501(java.io.PrintWriter pw)
           
protected  void printCategories(java.io.PrintWriter pw)
           
protected  void printConfigurations(java.io.PrintWriter pw)
           
protected  void printContexts(java.io.PrintWriter pw)
           
protected  void printDatafields(java.io.PrintWriter pw)
           
protected  void printHelp(java.io.PrintWriter pw)
           
protected  void printIndex(java.io.PrintWriter pw)
           
protected  void printPseudonyms(java.io.PrintWriter pw)
           
protected  void printRoles(java.io.PrintWriter pw)
           
protected  void printRules(java.io.PrintWriter pw)
           
protected  void printTPartners(java.io.PrintWriter pw)
           
protected  void printTypes(java.io.PrintWriter pw)
           
protected  void reply(java.lang.String method, java.lang.String uri, java.io.PrintWriter pw, boolean addHeader)
           
 void run()
          Nimmt Verbindungen entgegen und beantwortet Anfragen.
 void start()
          Start des Servers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public static boolean debug
Debugflag.


ss

protected java.net.ServerSocket ss

settings

protected java.util.Properties settings

local

protected boolean local

port

protected int port

manager

protected idman.mngt.Management manager
Constructor Detail

HttpExport

public HttpExport(int port,
                  java.util.Properties p,
                  idman.mngt.Management manager)
Konstruktor.

Parameters:
port - Port auf dem der Webserver läuft.
p - Einstellungen.
manager - Verweis auf das Managerobjekt, um die Verbindungen zu erfragen.

HttpExport

public HttpExport()
Konstruktor. Verbindungsdaten stehen bei Verwendung dieses Konstruktors nicht über HTTP zur Verfügung. Der Port wird fest auf 5180 gesetzt.

Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Testmethode.

Parameters:
args - Wird ignoriert.
java.lang.Exception

start

public void start()
Start des Servers.


run

public void run()
Nimmt Verbindungen entgegen und beantwortet Anfragen.

Specified by:
run in interface java.lang.Runnable

print501

protected void print501(java.io.PrintWriter pw)
                 throws java.io.IOException
java.io.IOException

print404

protected void print404(java.io.PrintWriter pw)
                 throws java.io.IOException
java.io.IOException

printIndex

protected void printIndex(java.io.PrintWriter pw)
                   throws java.io.IOException
java.io.IOException

reply

protected void reply(java.lang.String method,
                     java.lang.String uri,
                     java.io.PrintWriter pw,
                     boolean addHeader)
              throws java.io.IOException
java.io.IOException

printContexts

protected void printContexts(java.io.PrintWriter pw)
                      throws java.io.IOException
java.io.IOException

printRoles

protected void printRoles(java.io.PrintWriter pw)
                   throws java.io.IOException
java.io.IOException

printCategories

protected void printCategories(java.io.PrintWriter pw)
                        throws java.io.IOException
java.io.IOException

printPseudonyms

protected void printPseudonyms(java.io.PrintWriter pw)
                        throws java.io.IOException
java.io.IOException

printTPartners

protected void printTPartners(java.io.PrintWriter pw)
                       throws java.io.IOException
java.io.IOException

printTypes

protected void printTypes(java.io.PrintWriter pw)
                   throws java.io.IOException
java.io.IOException

printDatafields

protected void printDatafields(java.io.PrintWriter pw)
                        throws java.io.IOException
java.io.IOException

printRules

protected void printRules(java.io.PrintWriter pw)
                   throws java.io.IOException
java.io.IOException

printConfigurations

protected void printConfigurations(java.io.PrintWriter pw)
                            throws java.io.IOException
java.io.IOException

printHelp

protected void printHelp(java.io.PrintWriter pw)
                  throws java.io.IOException
java.io.IOException


Copyright © 2003 DRIM Team. All Rights Reserved.