abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r1176142 - in /abdera/abdera2/security/src/main/java/org/apache/abdera2/security/util/filters: AbstractEncryptedRequestFilter.java AbstractEncryptedResponseFilter.java SignedRequestFilter.java
Date Tue, 27 Sep 2011 00:58:21 GMT
Author: jmsnell
Date: Tue Sep 27 00:58:21 2011
New Revision: 1176142

URL: http://svn.apache.org/viewvc?rev=1176142&view=rev
Log: (empty)

Modified:
    abdera/abdera2/security/src/main/java/org/apache/abdera2/security/util/filters/AbstractEncryptedRequestFilter.java
    abdera/abdera2/security/src/main/java/org/apache/abdera2/security/util/filters/AbstractEncryptedResponseFilter.java
    abdera/abdera2/security/src/main/java/org/apache/abdera2/security/util/filters/SignedRequestFilter.java

Modified: abdera/abdera2/security/src/main/java/org/apache/abdera2/security/util/filters/AbstractEncryptedRequestFilter.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/security/src/main/java/org/apache/abdera2/security/util/filters/AbstractEncryptedRequestFilter.java?rev=1176142&r1=1176141&r2=1176142&view=diff
==============================================================================
--- abdera/abdera2/security/src/main/java/org/apache/abdera2/security/util/filters/AbstractEncryptedRequestFilter.java
(original)
+++ abdera/abdera2/security/src/main/java/org/apache/abdera2/security/util/filters/AbstractEncryptedRequestFilter.java
Tue Sep 27 00:58:21 2011
@@ -37,6 +37,7 @@ import org.apache.abdera2.protocol.serve
 import org.apache.abdera2.security.Encryption;
 import org.apache.abdera2.security.EncryptionOptions;
 
+@SuppressWarnings("unchecked")
 public abstract class AbstractEncryptedRequestFilter implements Filter {
 
     // The methods that allow encrypted bodies
@@ -64,9 +65,9 @@ public abstract class AbstractEncryptedR
         bootstrap(request);
         String method = request.getMethod();
         if (methods.contains(method.toUpperCase())) {
-            return chain.next(new DecryptingRequestContextWrapper(request));
+            return (S)chain.next(new DecryptingRequestContextWrapper(request));
         } else
-            return chain.next(request);
+            return (S)chain.next(request);
     }
 
     protected abstract void bootstrap(RequestContext request);
@@ -79,7 +80,6 @@ public abstract class AbstractEncryptedR
         public DecryptingRequestContextWrapper(RequestContext request) {
             super(request);
         }
-        @SuppressWarnings("unchecked")
         public <T extends Element> Document<T> getDocument(Parser parser, ParserOptions
options) throws ParseException,
             IOException {
             Document<Element> doc = super.getDocument();

Modified: abdera/abdera2/security/src/main/java/org/apache/abdera2/security/util/filters/AbstractEncryptedResponseFilter.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/security/src/main/java/org/apache/abdera2/security/util/filters/AbstractEncryptedResponseFilter.java?rev=1176142&r1=1176141&r2=1176142&view=diff
==============================================================================
--- abdera/abdera2/security/src/main/java/org/apache/abdera2/security/util/filters/AbstractEncryptedResponseFilter.java
(original)
+++ abdera/abdera2/security/src/main/java/org/apache/abdera2/security/util/filters/AbstractEncryptedResponseFilter.java
Tue Sep 27 00:58:21 2011
@@ -58,7 +58,7 @@ public abstract class AbstractEncryptedR
         if (doEncryption(request, arg)) {
             return (S)new EncryptingResponseContext(AbstractAtompubProvider.getAbdera(request),
request, chain.next(request), arg);
         } else {
-            return chain.next(request);
+            return (S)chain.next(request);
         }
     }
 

Modified: abdera/abdera2/security/src/main/java/org/apache/abdera2/security/util/filters/SignedRequestFilter.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/security/src/main/java/org/apache/abdera2/security/util/filters/SignedRequestFilter.java?rev=1176142&r1=1176141&r2=1176142&view=diff
==============================================================================
--- abdera/abdera2/security/src/main/java/org/apache/abdera2/security/util/filters/SignedRequestFilter.java
(original)
+++ abdera/abdera2/security/src/main/java/org/apache/abdera2/security/util/filters/SignedRequestFilter.java
Tue Sep 27 00:58:21 2011
@@ -58,7 +58,7 @@ public class SignedRequestFilter impleme
             } catch (Exception e) {
             }
         }
-        return chain.next(context);
+        return (S)chain.next(context);
     }
 
 }



Mime
View raw message