home *** CD-ROM | disk | FTP | other *** search
Java Source | 1996-12-09 | 1.9 KB | 65 lines |
- /*
- * Session.java
- *
- *
- * Copyright 1996 Sybase, Inc. All rights reserved.
- */
-
- /**
- * The Session class provides a way to get/set Session variables.
- * Currently a named string value can be saved as a name=value pair.
- */
-
- public class Session
- //******************
- {
-
- //-------------------------------------------------------------
- // Constructor
- //-------------------------------------------------------------
-
- /**
- * Constructs a new Session object with the specified handle
- * @param handle handle to the WWW server
- */
-
- public Session ( int handle )
- //***************************
- {
- _handle = handle;
- }
-
-
- //-------------------------------------------------------------
- // Public Methods
- //-------------------------------------------------------------
-
- /**
- * Returns the value of the specified variable name
- * @param name name of the variable whose value is to be returned
- * @return value of named variable or null
- * @exception WebServiceException If the handle to the WWW server is invalid
- */
-
- public native String getValue( String name ) throws WebServiceException;
- //*********************************************************************
-
- /**
- * Sets the named variable to the value specified
- * @param name name of the variable
- * @param value value of the variable
- * @exception WebServiceException If the handle to the WWW server is invalid
- */
-
- public native boolean setValue( String name, String value )
- throws WebServiceException;
- //*********************************************************
-
-
- //-------------------------------------------------------------
- // Data
- //-------------------------------------------------------------
-
- private int _handle; // handle to WebService
- }
-