You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by er...@apache.org on 2009/03/11 23:55:04 UTC
svn commit: r752680 -
/cxf/trunk/api/src/main/java/org/apache/cxf/phase/AbstractPhaseInterceptor.java
Author: ericjohnson
Date: Wed Mar 11 22:55:03 2009
New Revision: 752680
URL: http://svn.apache.org/viewvc?rev=752680&view=rev
Log:
added javadoc for addBefore and addAfter
Modified:
cxf/trunk/api/src/main/java/org/apache/cxf/phase/AbstractPhaseInterceptor.java
Modified: cxf/trunk/api/src/main/java/org/apache/cxf/phase/AbstractPhaseInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/phase/AbstractPhaseInterceptor.java?rev=752680&r1=752679&r2=752680&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/phase/AbstractPhaseInterceptor.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/phase/AbstractPhaseInterceptor.java Wed Mar 11 22:55:03 2009
@@ -96,25 +96,66 @@
phase = p;
}
+ /**
+ * Specifies that the current interceptor needs to be added to the
+ * interceptor chain before the specified collection of interceptors.
+ * This method replaces any existing list with the provided list.
+ *
+ * @param i a collection of interceptor ids
+ */
public void setBefore(Collection<String> i) {
before.clear();
before.addAll(i);
}
- public void setAfter(Collection<String> i) {
+
+ /**
+ * Specifies that the current interceptor needs to be added to the
+ * interceptor chain after the specified collection of interceptors.
+ * This method replaces any existing list with the provided list.
+ *
+ * @param i a collection of interceptor ids
+ */
+ public void setAfter(Collection<String> i) {
after.clear();
after.addAll(i);
}
- public void addBefore(Collection<String> i) {
+
+ /**
+ * Specifies that the current interceptor needs to be added to the
+ * interceptor chain before the specified collection of interceptors.
+ *
+ * @param i a collection of interceptor ids
+ */
+ public void addBefore(Collection<String> i) {
before.addAll(i);
}
+
+ /**
+ * Specifies that the current interceptor needs to be added to the
+ * interceptor chain after the specified collection of interceptors.
+ *
+ * @param i a collection of interceptor ids
+ */
public void addAfter(Collection<String> i) {
after.addAll(i);
}
+ /**
+ * Specifies that the current interceptor needs to be added to the
+ * interceptor chain before the specified interceptor.
+ *
+ * @param i an interceptor id
+ */
public void addBefore(String i) {
before.add(i);
}
+ /**
+ * Specifies that the current interceptor needs to be added to the
+ * interceptor chain after the specified interceptor.
+ *
+ * @param i an interceptor id
+ */
public void addAfter(String i) {
after.add(i);
}