cmlenz 2002/08/10 01:00:47
Modified: src/stores/org/apache/slide/store/impl/rdbms
J2EEContentStore.java
Log:
- Cosmetic tidbits
Revision Changes Path
1.4 +22 -17
jakarta-slide/src/stores/org/apache/slide/store/impl/rdbms/J2EEContentStore.java
Index: J2EEContentStore.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/stores/org/apache/slide/store/impl/rdbms/J2EEContentStore.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- J2EEContentStore.java 8 Aug 2002 21:12:12 -0000 1.3
+++ J2EEContentStore.java 10 Aug 2002 08:00:47 -0000 1.4
@@ -93,28 +93,33 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Ashok Kumar</a>
* @version $Revision$
*/
-public class J2EEContentStore extends J2EEStore
+public class J2EEContentStore
+ extends J2EEStore
implements ContentStore {
-
-
+
+
// -------------------------------------------------------------- Constants
- private boolean bcompress = false;
-
+
+
public static final int BUFFER_SIZE = 2048;
-
- /** @deprecated */ // FIXME: remove this
- public static final String CHARACTER_ENCODING = "8859_1";
-
-
+
+
+ // ----------------------------------------------------- Instance Variables
+
+
+ private boolean compressContent = false;
+
// --------------------------------------------------- ContentStore Methods
-//Overidden method with a call to the parent method.
-//Added behaviour for passing additional parameters.
-
+
+
+ //Overidden method with a call to the parent method.
+ //Added behaviour for passing additional parameters.
public synchronized void setParameters(Hashtable parameters)
throws ServiceParameterErrorException,
ServiceParameterMissingException {
+
try {
- bcompress = (((String)parameters.get("compress")
+ compressContent = (((String)parameters.get("compress")
).equals("true"))? true:false;
super.setParameters(parameters);
}catch (Exception e){
@@ -170,7 +175,7 @@
}
// Uncompress the retrieved data.
result = new NodeRevisionContent();
- if (bcompress) {
+ if (compressContent) {
getLogger().log
("DeCompressing the data",LOG_CHANNEL,Logger.INFO);
StoreContentZip ziputil = new StoreContentZip();
@@ -374,7 +379,7 @@
// ------------------------------------------------------ Protected Methods
- /**
+ /**
* Store a revision.
*/
protected void storeContent(String revisionUri, String revisionNumber,
@@ -406,7 +411,7 @@
if (is != null) {
// Compress the recieved data.
long contentLength = 0;
- if (bcompress) {
+ if (compressContent) {
getLogger().log("Compressing the
data",LOG_CHANNEL,Logger.INFO);
StoreContentZip ziputil = new StoreContentZip();
ziputil.Zip(is);
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>