kandata.server.http
クラス ServletServer

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--kandata.server.http.ServletServer
すべての実装インタフェース:
java.io.Serializable, ServerContext, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ServletServer
extends javax.servlet.http.HttpServlet
implements ServerContext

KandataサーバのServlet実装です.

関連項目:
直列化された形式

フィールドの概要
protected  java.lang.String clientClassPath
          クライアントアプリのクラスパス.
protected  java.lang.String clientEntryClassName
          クライアントアプリのエントリクラス名.
protected  java.lang.String clientResourcePath
          クライアントリソースのパス.
protected  Server server
          アプリケーションサーバ.
protected  java.lang.String serverClassName
          サーバアプリのクラス名.
protected  java.lang.String serverResourcePath
          サーバリソースのパス.
 
コンストラクタの概要
ServletServer()
           
 
メソッドの概要
 void destroy()
          サーバが終了されます.
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          GET要求を処理します.
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          POST要求を処理します.
 java.lang.String getResourcePath()
          サーバ・リソースのパスを返します。
 void init()
          サーブレットの初期化処理.
protected  java.lang.Object invokeSystemCommand(ClientContext context, java.lang.String command, java.lang.Object[] args)
          システムコマンドを処理する.
protected  void loadConfiguration(java.lang.String fname)
          設定を読み込む.
 
クラス javax.servlet.http.HttpServlet から継承したメソッド
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
クラス javax.servlet.GenericServlet から継承したメソッド
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

server

protected Server server
アプリケーションサーバ.


serverClassName

protected java.lang.String serverClassName
サーバアプリのクラス名.


serverResourcePath

protected java.lang.String serverResourcePath
サーバリソースのパス.


clientEntryClassName

protected java.lang.String clientEntryClassName
クライアントアプリのエントリクラス名.


clientClassPath

protected java.lang.String clientClassPath
クライアントアプリのクラスパス.


clientResourcePath

protected java.lang.String clientResourcePath
クライアントリソースのパス.

コンストラクタの詳細

ServletServer

public ServletServer()
メソッドの詳細

init

public void init()
          throws javax.servlet.ServletException
サーブレットの初期化処理.

オーバーライド:
クラス javax.servlet.GenericServlet 内の init
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws java.io.IOException,
                  javax.servlet.ServletException
GET要求を処理します.

オーバーライド:
クラス javax.servlet.http.HttpServlet 内の doGet
java.io.IOException
javax.servlet.ServletException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.io.IOException,
                   javax.servlet.ServletException
POST要求を処理します.

オーバーライド:
クラス javax.servlet.http.HttpServlet 内の doPost
java.io.IOException
javax.servlet.ServletException

invokeSystemCommand

protected java.lang.Object invokeSystemCommand(ClientContext context,
                                               java.lang.String command,
                                               java.lang.Object[] args)
システムコマンドを処理する.


loadConfiguration

protected void loadConfiguration(java.lang.String fname)
設定を読み込む. XMLではなく、Propertiesにしている。JDK1.3ではデフォルトで入っていないので.


destroy

public void destroy()
サーバが終了されます.

定義:
インタフェース javax.servlet.Servlet 内の destroy
オーバーライド:
クラス javax.servlet.GenericServlet 内の destroy

getResourcePath

public java.lang.String getResourcePath()
インタフェース ServerContext の記述:
サーバ・リソースのパスを返します。

定義:
インタフェース ServerContext 内の getResourcePath