All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.blueworld.lasso.LassoProxy

java.lang.Object
   |
   +----com.blueworld.lasso.LassoProxy

public class LassoProxy
extends Object
Communicates with Lasso to process database requests.


Constructor Index

 o LassoProxy(URL)
Constructs a LassoProxy object which used the default.
 o LassoProxy(URL, String)
Constructs a LassoProxy object and specifies the URL to which requests will be submitted.

Method Index

 o databaseNames()
Retrieves an array of all the databases opened on the server.
 o getDebug()
Returns the debug state.
 o getGIF(LassoRequest, String, int, boolean)
Works identically to getJPEG(), but returns the image in GIF format.
 o getJPEG(LassoRequest, String, int, int)
Retrieves an image from the database in JPEG format.
 o getLasso()
Retrieves the name currently used by Lasso.
 o layoutNames(String)
Retrieves an array of all the layouts in the specified database.
 o makeImageString(LassoRequest)
 o prepare(String)
First UTF-8 encodes, then URL encodes the input string.
 o processRequest(LassoRequest)
Attempts to process the request defined by the LassoRequest object.
 o setDebug(boolean)
Sets the debug state.
 o URLencodeForUTF(String)

Constructors

 o LassoProxy
 public LassoProxy()
Constructs a LassoProxy object and specifies the URL to which requests will be submitted.

Also specifies the Lasso name, e.g., "action.lasso" or "Lasso.acgi".

 o LassoProxy
 public LassoProxy()
Constructs a LassoProxy object which used the default.

Methods

 o URLencodeForUTF
 public static String URLencodeForUTF()
 o prepare
 public static String prepare() throws IOException
First UTF-8 encodes, then URL encodes the input string.

 o databaseNames
 public String[] databaseNames() throws IOException
Retrieves an array of all the databases opened on the server.

Returns:
An array of all the databases opened on the server.
 o layoutNames
 public String[] layoutNames() throws IOException
Retrieves an array of all the layouts in the specified database.

Returns:
An array of all the layouts in the specified database.
 o getJPEG
 public Image getJPEG() throws MalformedURLException, IOException
Retrieves an image from the database in JPEG format.

The LassoRequest object must have the database name, layout name and the record ID set accordingly.

Parameters:
fieldname - Specifies the field in the database where the image resides.
bitsPerPixel - Specifies the number of bits per prixel. (16 or 32)
imageQuality - Specifies the image compression level (0 through 4). 4 is the highest quality, but results in larger images.
Returns:
An image from the database in JPEG format.
See Also:
getGIF
 o getGIF
 public Image getGIF() throws MalformedURLException, IOException
Works identically to getJPEG(), but returns the image in GIF format.

Parameters:
bitsPerPixel - Specifies the number of bits per pixel. (1 through 8)
interlace - Images can be optionally interlaced.
Returns:
An image from the database in GIF format.
See Also:
bitPerPixel
 o makeImageString
 protected StringBuffer makeImageString() throws IOException
 o getLasso
 public String getLasso()
Retrieves the name currently used by Lasso.

Returns:
The name currently used by Lasso.
 o processRequest
 public LassoResponse processRequest() throws IOException
Attempts to process the request defined by the LassoRequest object.

Returns:
A LassoResponse object containing the resulting data.
 o setDebug
 public void setDebug()
Sets the debug state.

 o getDebug
 public boolean getDebug()
Returns the debug state.


All Packages  Class Hierarchy  This Package  Previous  Next  Index