kandata.server.http
クラス ServletServer

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

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

KandataサーバのServlet実装です.

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

フィールドの概要
protected  java.lang.String clientClassPath
          クライアントアプリのクラスパス.
protected  java.lang.String clientEntryClassName
          クライアントアプリのエントリクラス名.
protected  java.lang.String clientResourcePath
          クライアントリソースのパス.
protected  KandataServer 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 invokeCommand(KandataClientContext context, java.lang.String command, java.lang.Object[] args)
           
protected  java.lang.Object invokeSystemCommand(KandataClientContext context, java.lang.String command, java.lang.Object[] args)
          システムコマンドを処理する.
protected  void loadConfiguration(java.lang.String fname)
          設定を読み込む.
 void putAction(java.lang.String command, KandataAction action)
          アクションを登録する.
 
クラス 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 KandataServer 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

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

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

invokeSystemCommand

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

invokeCommand

protected java.lang.Object invokeCommand(KandataClientContext context,
                                         java.lang.String command,
                                         java.lang.Object[] args)
                                  throws KandataServerException

loadConfiguration

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

destroy

public void destroy()
サーバが終了されます.
オーバーライド:
クラス javax.servlet.GenericServlet 内の destroy

getResourcePath

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

putAction

public void putAction(java.lang.String command,
                      KandataAction action)
アクションを登録する.
定義:
インタフェース KandataServerContext 内の putAction