aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2012-11-02 09:27:11 (EDT)
committerThomas Becker2012-11-02 09:27:11 (EDT)
commit971bf4dec73797dc99bcb3b266ba52e196eca755 (patch)
tree1524b822d53f0b2771bab4f2996c41c8ab262f56
parent3d3e077509a4211a30e07740119b1061e9828d25 (diff)
downloadorg.eclipse.jetty.project-971bf4dec73797dc99bcb3b266ba52e196eca755.zip
org.eclipse.jetty.project-971bf4dec73797dc99bcb3b266ba52e196eca755.tar.gz
org.eclipse.jetty.project-971bf4dec73797dc99bcb3b266ba52e196eca755.tar.bz2
393281: Add getters to expose ReferrerPushStrategy Config
-rw-r--r--jetty-spdy/spdy-http-server/src/main/java/org/eclipse/jetty/spdy/server/http/ReferrerPushStrategy.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/jetty-spdy/spdy-http-server/src/main/java/org/eclipse/jetty/spdy/server/http/ReferrerPushStrategy.java b/jetty-spdy/spdy-http-server/src/main/java/org/eclipse/jetty/spdy/server/http/ReferrerPushStrategy.java
index 9350f7c..c677ad4 100644
--- a/jetty-spdy/spdy-http-server/src/main/java/org/eclipse/jetty/spdy/server/http/ReferrerPushStrategy.java
+++ b/jetty-spdy/spdy-http-server/src/main/java/org/eclipse/jetty/spdy/server/http/ReferrerPushStrategy.java
@@ -122,6 +122,36 @@ public class ReferrerPushStrategy implements PushStrategy
this.referrerPushPeriod = referrerPushPeriod;
}
+ public Set<Pattern> getPushRegexps()
+ {
+ return pushRegexps;
+ }
+
+ public Set<String> getPushContentTypes()
+ {
+ return pushContentTypes;
+ }
+
+ public Set<Pattern> getAllowedPushOrigins()
+ {
+ return allowedPushOrigins;
+ }
+
+ public Set<Pattern> getUserAgentBlacklist()
+ {
+ return userAgentBlacklist;
+ }
+
+ public int getMaxAssociatedResources()
+ {
+ return maxAssociatedResources;
+ }
+
+ public int getReferrerPushPeriod()
+ {
+ return referrerPushPeriod;
+ }
+
@Override
public Set<String> apply(Stream stream, Fields requestHeaders, Fields responseHeaders)
{