Skip to content

Commit

Permalink
Make CookieProcessor generic using its interface type (it correctly d…
Browse files Browse the repository at this point in the history
…efaults to the new processor now).

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1731857 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
rmaucher committed Feb 23, 2016
1 parent 172fe8d commit 37f39cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 3 additions & 1 deletion java/org/apache/catalina/storeconfig/StoreRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import org.apache.coyote.UpgradeProtocol;
import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
import org.apache.tomcat.util.http.CookieProcessor;

/**
* Central StoreRegistry for all server.xml elements
Expand All @@ -66,7 +67,8 @@ public class StoreRegistry {
Valve.class, ClusterListener.class, MessageListener.class,
DataSender.class, ChannelInterceptor.class, Member.class,
WebResourceRoot.class, WebResourceSet.class,
CredentialHandler.class, UpgradeProtocol.class };
CredentialHandler.class, UpgradeProtocol.class,
CookieProcessor.class };

/**
* @return Returns the name.
Expand Down
11 changes: 2 additions & 9 deletions java/org/apache/catalina/storeconfig/server-registry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -456,16 +456,9 @@
</Description>
<Description
tag="CookieProcessor"
standard="true"
default="false"
tagClass="org.apache.tomcat.util.http.LegacyCookieProcessor"
storeFactoryClass="org.apache.catalina.storeconfig.StoreFactoryBase">
</Description>
<Description
tag="CookieProcessor"
standard="true"
standard="false"
default="false"
tagClass="org.apache.tomcat.util.http.Rfc6265CookieProcessor"
tagClass="org.apache.tomcat.util.http.CookieProcessor"
storeFactoryClass="org.apache.catalina.storeconfig.StoreFactoryBase">
</Description>
<Description
Expand Down

0 comments on commit 37f39cc

Please sign in to comment.