Author: sanka
Date: Wed Sep 20 05:15:10 2006
New Revision: 448186

URL: http://svn.apache.org/viewvc?view=rev&rev=448186
Log:
Some cleanups with the upgrade to new Neethi2 architecture

Added:
    
webservices/sandesha/trunk/java/src/org/apache/sandesha2/policy/RMPolicyBean.java
Modified:
    webservices/sandesha/trunk/java/src/org/apache/sandesha2/SandeshaModule.java
    
webservices/sandesha/trunk/java/src/org/apache/sandesha2/policy/RMPolicyExtension.java
    
webservices/sandesha/trunk/java/src/org/apache/sandesha2/util/SandeshaPropertyBean.java

Modified: 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/SandeshaModule.java
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/src/org/apache/sandesha2/SandeshaModule.java?view=diff&rev=448186&r1=448185&r2=448186
==============================================================================
--- 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/SandeshaModule.java 
(original)
+++ 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/SandeshaModule.java 
Wed Sep 20 05:15:10 2006
@@ -31,7 +31,7 @@
 import org.apache.neethi.Policy;

 import org.apache.sandesha2.i18n.SandeshaMessageHelper;

 import org.apache.sandesha2.i18n.SandeshaMessageKeys;

-import org.apache.sandesha2.policy1.RMPolicyExtension;

+import org.apache.sandesha2.policy.RMPolicyExtension;

 import org.apache.sandesha2.security.SecurityManager;

 import org.apache.sandesha2.storage.SandeshaStorageException;

 import org.apache.sandesha2.storage.StorageManager;


Added: 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/policy/RMPolicyBean.java
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/src/org/apache/sandesha2/policy/RMPolicyBean.java?view=auto&rev=448186
==============================================================================
--- 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/policy/RMPolicyBean.java
 (added)
+++ 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/policy/RMPolicyBean.java
 Wed Sep 20 05:15:10 2006
@@ -0,0 +1,84 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+/**
+ * Used to hold RM Policy information.
+ * 
+ * @author Chamikara Jayalath <[EMAIL PROTECTED]>
+ * @author Sanka Samaranayaka <[EMAIL PROTECTED]>
+ */
+
+package org.apache.sandesha2.policy;
+
+
+public class RMPolicyBean {
+    private long inactiveTimeoutInterval;
+    private long acknowledgementInterval;
+    private long retransmissionInterval;
+    private boolean exponentialBackoff;
+    private int maximumRetransmissionCount;
+    
+    public RMPolicyBean () {
+        loadValuesFromPropertyFile ();
+    }
+    
+    private void loadValuesFromPropertyFile () {
+        //TODO load policy values from the file.
+    }
+    
+    public long getInactiveTimeoutInterval() {
+        return inactiveTimeoutInterval;
+    }
+    
+    public long getAcknowledgementInterval() {
+        return acknowledgementInterval;
+    }
+    
+    public long getRetransmissionInterval() {
+        return retransmissionInterval;
+    }
+    
+    public boolean isExponentialBackoff() {
+        return exponentialBackoff;
+    }
+    
+    public void setExponentialBackoff(boolean exponentialBackoff) {
+        this.exponentialBackoff = exponentialBackoff;        
+    }
+    
+    public void setRetransmissionInterval(long retransmissionInterval) {
+        this.retransmissionInterval = retransmissionInterval;
+    }
+    
+    public void setInactiveTimeoutInterval(long inactiveTimeoutInterval) {
+        this.inactiveTimeoutInterval = inactiveTimeoutInterval;
+    }
+    
+    public void setAcknowledgementInterval(long acknowledgementInterval) {
+        this.acknowledgementInterval = acknowledgementInterval;
+    }
+
+    public int getMaximumRetransmissionCount() {
+        return maximumRetransmissionCount;
+    }
+
+    public void setMaximumRetransmissionCount(int maximumRetransmissionCount) {
+        this.maximumRetransmissionCount = maximumRetransmissionCount;
+    }
+    
+    
+}
\ No newline at end of file

Modified: 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/policy/RMPolicyExtension.java
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/src/org/apache/sandesha2/policy/RMPolicyExtension.java?view=diff&rev=448186&r1=448185&r2=448186
==============================================================================
--- 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/policy/RMPolicyExtension.java
 (original)
+++ 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/policy/RMPolicyExtension.java
 Wed Sep 20 05:15:10 2006
@@ -17,10 +17,12 @@
 
 package org.apache.sandesha2.policy;
 
+import java.util.List;
+
 import javax.xml.namespace.QName;
 
 import org.apache.axis2.modules.PolicyExtension;
-import org.apache.ws.policy.Policy;
+import org.apache.neethi.Policy;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 
@@ -41,5 +43,10 @@
                
                element.appendChild(methods);
        }
+
+    public void addMethodsToStub(Document document, Element element, QName 
methodName, List assertions) {
+        // TODO Auto-generated method stub
+        
+    }
 
 }

Modified: 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/util/SandeshaPropertyBean.java
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/src/org/apache/sandesha2/util/SandeshaPropertyBean.java?view=diff&rev=448186&r1=448185&r2=448186
==============================================================================
--- 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/util/SandeshaPropertyBean.java
 (original)
+++ 
webservices/sandesha/trunk/java/src/org/apache/sandesha2/util/SandeshaPropertyBean.java
 Wed Sep 20 05:15:10 2006
@@ -27,7 +27,7 @@
 import org.apache.neethi.Constants;

 import org.apache.neethi.PolicyComponent;

 import org.apache.sandesha2.Sandesha2Constants;

-import org.apache.sandesha2.policy1.RMPolicyBean;

+import org.apache.sandesha2.policy.RMPolicyBean;

 

 /**

  * Used to hold peoperties loaded from sandesha2.properties file or




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to