Class RequestPattern


  • @Beta
    public class RequestPattern
    extends java.lang.Object
    Request pattern for interception.
    • Constructor Summary

      Constructors 
      Constructor Description
      RequestPattern​(java.util.Optional<java.lang.String> urlPattern, java.util.Optional<ResourceType> resourceType, java.util.Optional<InterceptionStage> interceptionStage)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<InterceptionStage> getInterceptionStage()
      Stage at wich to begin intercepting requests.
      java.util.Optional<ResourceType> getResourceType()
      If set, only requests for matching resource types will be intercepted.
      java.util.Optional<java.lang.String> getUrlPattern()
      Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RequestPattern

        public RequestPattern​(java.util.Optional<java.lang.String> urlPattern,
                              java.util.Optional<ResourceType> resourceType,
                              java.util.Optional<InterceptionStage> interceptionStage)
    • Method Detail

      • getUrlPattern

        public java.util.Optional<java.lang.String> getUrlPattern()
        Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is backslash. Omitting is equivalent to "*".
      • getResourceType

        public java.util.Optional<ResourceType> getResourceType()
        If set, only requests for matching resource types will be intercepted.
      • getInterceptionStage

        public java.util.Optional<InterceptionStage> getInterceptionStage()
        Stage at wich to begin intercepting requests. Default is Request.