pandora
Class QueryImpl

java.lang.Object
  |
  +--pandora.QueryImpl
All Implemented Interfaces:
QueryIF, java.rmi.Remote, javax.xml.rpc.server.ServiceLifecycle

public class QueryImpl
extends java.lang.Object
implements QueryIF, javax.xml.rpc.server.ServiceLifecycle

Skeleton of a payment or delivery Web service.

alexis.grandemange@pagebox.net

Copyright (c) 2002-2003 Alexis Grandemange

This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public License
 as published by the Free Software Foundation; version 2.1 of the
 License.
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU Lesser General Public License for more details.
 A copy of the GNU Lesser General Public License lesser.txt should be
 included in the distribution.

Version:
0, 0, 1
Author:
Alexis Grandemange

Nested Class Summary
 
Nested classes inherited from class pandora.QueryIF
QueryIF.Item, QueryIF.Status
 
Field Summary
(package private)  PageBoxAPI API
          Installation API instance
(package private)  javax.servlet.ServletContext ctx
          Unique to the Web application
(package private)  PageBoxLib.LogIF log
          Logging object
(package private)  QueryIF.Status status
          Response status
(package private)  java.lang.String workDir
          Directory where InstallAPI.txt is defined
 
Constructor Summary
QueryImpl()
           
 
Method Summary
 void destroy()
          ServiceLifeCycle method.
 void init(java.lang.Object context)
          ServiceLifeCycle method.
 QueryIF.Status query(java.lang.String id, QueryIF.Item[] items)
          Query a delivery or payment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

API

PageBoxAPI API
Installation API instance


ctx

javax.servlet.ServletContext ctx
Unique to the Web application


workDir

java.lang.String workDir
Directory where InstallAPI.txt is defined


log

PageBoxLib.LogIF log
Logging object


status

QueryIF.Status status
Response status

Constructor Detail

QueryImpl

public QueryImpl()
Method Detail

init

public void init(java.lang.Object context)
          throws javax.xml.rpc.ServiceException
ServiceLifeCycle method.

Called at initialization.

Specified by:
init in interface javax.xml.rpc.server.ServiceLifecycle
Parameters:
context - ServletEndpoint Context
javax.xml.rpc.ServiceException

destroy

public void destroy()
ServiceLifeCycle method. Called at destruction.

Specified by:
destroy in interface javax.xml.rpc.server.ServiceLifecycle

query

public QueryIF.Status query(java.lang.String id,
                            QueryIF.Item[] items)
Query a delivery or payment.

Specified by:
query in interface QueryIF
Parameters:
id - payment and delivery identification
items - command items (articles)
Returns:
response status