java.lang.Object
com.renomad.minum.web.PathDetails
Some essential characteristics of the path portion of the start line
-
Field Details
-
empty
-
-
Constructor Details
-
PathDetails
Basic constructor- Parameters:
isolatedPath
- the isolated path is found after removing the query stringrawQueryString
- the raw query is the string after a question mark (if it exists - it's optional) if there is no query string, then we leave rawQuery as a null valuequeryString
- the query is a map of the keys -> values found in the query string
-
-
Method Details
-
getIsolatedPath
Provides the path by itself, without the query string. For examples, here are some request lines with their isolated paths:request line isolated path ------------------- ------------- POST / HTTP/1.1 "" GET /background.png HTTP/1.0 "background.png" HEAD /test.html?query=alibaba HTTP/1.1 "test.html" OPTIONS /anypage.html HTTP/1.0 "anypage.html"
-
getRawQueryString
Returns the raw query string. For example, in "HEAD /test.html?query=alibaba HTTP/1.1", the raw query string is "query=alibaba" -
getQueryString
This returns the query string portion of the request line as a map, with case-sensitive keys. -
equals
-
hashCode
public int hashCode() -
toString
-