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.
-
LassoProxy(URL)
- Constructs a LassoProxy object which used the default.
-
LassoProxy(URL, String)
- Constructs a LassoProxy object and specifies the URL to which requests will be submitted.
-
databaseNames()
- Retrieves an array of all the databases opened on the server.
-
getDebug()
- Returns the debug state.
-
getGIF(LassoRequest, String, int, boolean)
- Works identically to getJPEG(), but returns the image in GIF format.
-
getJPEG(LassoRequest, String, int, int)
- Retrieves an image from the database in JPEG format.
-
getLasso()
- Retrieves the name currently used by Lasso.
-
layoutNames(String)
- Retrieves an array of all the layouts in the specified database.
-
makeImageString(LassoRequest)
-
-
prepare(String)
- First UTF-8 encodes, then URL encodes the input string.
-
processRequest(LassoRequest)
- Attempts to process the request defined by the LassoRequest object.
-
setDebug(boolean)
- Sets the debug state.
-
URLencodeForUTF(String)
-
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".
LassoProxy
public LassoProxy()
- Constructs a LassoProxy object which used the default.
URLencodeForUTF
public static String URLencodeForUTF()
prepare
public static String prepare() throws IOException
- First UTF-8 encodes, then URL encodes the input string.
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.
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.
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
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
makeImageString
protected StringBuffer makeImageString() throws IOException
getLasso
public String getLasso()
- Retrieves the name currently used by Lasso.
- Returns:
- The name currently used by Lasso.
processRequest
public LassoResponse processRequest() throws IOException
- Attempts to process the request defined by the LassoRequest object.
- Returns:
- A LassoResponse object containing the resulting data.
setDebug
public void setDebug()
- Sets the debug state.
getDebug
public boolean getDebug()
- Returns the debug state.
All Packages Class Hierarchy This Package Previous Next Index