Class MatchInfo


  • public final class MatchInfo
    extends java.lang.Object
    Information required for performing a request match.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ANY_FRAGMENT
      A value representing all and any fragments.
      static java.lang.String ANY_HOST
      A value representing all and any hosts.
      static org.springframework.http.HttpMethod ANY_METHOD
      A value representing all and any queries.
      static java.lang.String ANY_PATH
      A value representing all and any paths.
      static int ANY_PORT
      A value representing all and any ports.
      static java.lang.String ANY_QUERY
      A value representing all and any queries.
      static java.lang.String ANY_REALM
      A value representing all and any realms.
      static java.lang.String ANY_SCHEME
      A value representing all and any schemes.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static MatchInfo fromAuthScope​(org.apache.http.auth.AuthScope authscope)
      Create an info object from an authscope object.
      static MatchInfo fromUri​(java.net.URI uri, org.springframework.http.HttpMethod method)
      Create an info object from a uri and the http method object.
      java.lang.String getFragment()  
      java.lang.String getHost()  
      java.lang.String getPath()  
      int getPort()  
      java.lang.String getQuery()  
      java.lang.String getRealm()  
      java.lang.String getScheme()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ANY_SCHEME

        public static final java.lang.String ANY_SCHEME
        A value representing all and any schemes.
      • ANY_HOST

        public static final java.lang.String ANY_HOST
        A value representing all and any hosts.
      • ANY_REALM

        public static final java.lang.String ANY_REALM
        A value representing all and any realms.
      • ANY_PATH

        public static final java.lang.String ANY_PATH
        A value representing all and any paths.
      • ANY_FRAGMENT

        public static final java.lang.String ANY_FRAGMENT
        A value representing all and any fragments.
      • ANY_QUERY

        public static final java.lang.String ANY_QUERY
        A value representing all and any queries.
      • ANY_METHOD

        public static final org.springframework.http.HttpMethod ANY_METHOD
        A value representing all and any queries.
      • ANY_PORT

        public static final int ANY_PORT
        A value representing all and any ports.
        See Also:
        Constant Field Values
    • Method Detail

      • fromUri

        public static MatchInfo fromUri​(java.net.URI uri,
                                        org.springframework.http.HttpMethod method)
        Create an info object from a uri and the http method object.
        Parameters:
        uri - the uri
        method - the method
      • fromAuthScope

        public static MatchInfo fromAuthScope​(org.apache.http.auth.AuthScope authscope)
        Create an info object from an authscope object.
        Parameters:
        authscope - the authscope
      • getScheme

        public java.lang.String getScheme()
      • getHost

        public java.lang.String getHost()
      • getPort

        public int getPort()
      • getPath

        public java.lang.String getPath()
      • getFragment

        public java.lang.String getFragment()
      • getQuery

        public java.lang.String getQuery()
      • getRealm

        public java.lang.String getRealm()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string