org.isam.exehda.services.bda
Class BdaImpl

java.lang.Object
  |
  +--org.isam.exehda.services.AbstractService
        |
        +--org.isam.exehda.services.HttpService
              |
              +--org.isam.exehda.services.bda.BdaImpl
All Implemented Interfaces:
java.lang.Runnable, Service

public class BdaImpl
extends HttpService

This class implements ISAM BDA service, the pervasive code repository of the ISAM platform.

Version:
$Date: 2004/04/29 14:20:14 $ $Revision: 1.2 $
Author:
last modified by $Author: lucc $

Nested Class Summary
 
Nested classes inherited from class org.isam.exehda.services.HttpService
HttpService.ServiceRequest, HttpService.ServiceResponse
 
Field Summary
(package private) static int BDA_OP_READ
           
(package private) static int BDA_OP_WRITE
           
(package private) static java.lang.String DEFAULT_DOCROOT
           
(package private) static int DEFAULT_PORT
           
(package private) static java.lang.String PROP_BDA_OPERATION
           
(package private) static java.lang.String PROP_BDA_RESOURCE
           
(package private) static java.lang.String PROP_BDA_USER
           
(package private) static java.lang.String SERVICE_NAME
           
 
Constructor Summary
BdaImpl()
           
 
Method Summary
protected  boolean checkAccess(java.lang.String fileName, java.lang.String userName, int op)
           
protected  int getBdaOperation(HttpService.ServiceRequest req)
           
protected  void handleBdaRead(HttpService.ServiceRequest req)
           
protected  void handleBdaWrite(HttpService.ServiceRequest req)
           
protected  void handleRequest(HttpService.ServiceRequest req)
           
 void start()
           
 
Methods inherited from class org.isam.exehda.services.HttpService
getPort, getThreadPoolSize, main, run, setPort, setThreadPoolSize, stop
 
Methods inherited from class org.isam.exehda.services.AbstractService
log, log, log, log, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

static final java.lang.String SERVICE_NAME
See Also:
Constant Field Values

DEFAULT_DOCROOT

static final java.lang.String DEFAULT_DOCROOT
See Also:
Constant Field Values

DEFAULT_PORT

static final int DEFAULT_PORT
See Also:
Constant Field Values

PROP_BDA_OPERATION

static final java.lang.String PROP_BDA_OPERATION
See Also:
Constant Field Values

PROP_BDA_RESOURCE

static final java.lang.String PROP_BDA_RESOURCE
See Also:
Constant Field Values

PROP_BDA_USER

static final java.lang.String PROP_BDA_USER
See Also:
Constant Field Values

BDA_OP_READ

static final int BDA_OP_READ
See Also:
Constant Field Values

BDA_OP_WRITE

static final int BDA_OP_WRITE
See Also:
Constant Field Values
Constructor Detail

BdaImpl

public BdaImpl()
Method Detail

start

public void start()
Specified by:
start in interface Service
Overrides:
start in class HttpService

handleRequest

protected void handleRequest(HttpService.ServiceRequest req)
                      throws java.io.IOException
Overrides:
handleRequest in class HttpService
java.io.IOException

checkAccess

protected boolean checkAccess(java.lang.String fileName,
                              java.lang.String userName,
                              int op)

getBdaOperation

protected int getBdaOperation(HttpService.ServiceRequest req)

handleBdaRead

protected void handleBdaRead(HttpService.ServiceRequest req)
                      throws java.io.IOException
java.io.IOException

handleBdaWrite

protected void handleBdaWrite(HttpService.ServiceRequest req)