Class HttpOriginMatcher
java.lang.Object
org.apache.pekko.http.cors.javadsl.model.HttpOriginMatcher
org.apache.pekko.http.cors.scaladsl.model.HttpOriginMatcher
- Direct Known Subclasses:
HttpOriginMatcher.$times$,HttpOriginMatcher.Default,HttpOriginMatcher.Strict
HttpOrigin matcher.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classstatic classstatic final classstatic class -
Field Summary
Fields inherited from class org.apache.pekko.http.cors.javadsl.model.HttpOriginMatcher
ALL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpOriginMatcherapply(scala.collection.immutable.Seq<HttpOrigin> origins) Build a matcher that will accept any of the given origins.booleanmatches(HttpOrigin origin) Java APIabstract booleanmatches(HttpOrigin origin) static HttpOriginMatcherstrict(scala.collection.immutable.Seq<HttpOrigin> origins) Build a matcher that will accept any of the given origins.Methods inherited from class org.apache.pekko.http.cors.javadsl.model.HttpOriginMatcher
create, strict
-
Constructor Details
-
HttpOriginMatcher
public HttpOriginMatcher()
-
-
Method Details
-
strict
Build a matcher that will accept any of the given origins. Wildcard in the hostname will not be interpreted.- Parameters:
origins- (undocumented)- Returns:
- (undocumented)
-
apply
Build a matcher that will accept any of the given origins. Hostname starting with*.will match any sub-domain. The scheme and the port are always strictly matched.- Parameters:
origins- (undocumented)- Returns:
- (undocumented)
-
matches
-
matches
Java API- Specified by:
matchesin classHttpOriginMatcher
-