Class Host
- java.lang.Object
- 
- org.apache.tomcat.util.http.parser.Host
 
- 
 public class Host extends java.lang.Object
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static intparse(java.lang.String string)Parse the given input as an HTTP Host header value.static intparse(MessageBytes mb)Parse the given input as an HTTP Host header value.
 
- 
- 
- 
Method Detail- 
parsepublic static int parse(MessageBytes mb) Parse the given input as an HTTP Host header value.- Parameters:
- mb- The host header value
- Returns:
- The position of ':' that separates the host from the port or -1 if it is not present
- Throws:
- java.lang.IllegalArgumentException- If the host header value is not specification compliant
 
 - 
parsepublic static int parse(java.lang.String string) Parse the given input as an HTTP Host header value.- Parameters:
- string- The host header value
- Returns:
- The position of ':' that separates the host from the port or -1 if it is not present
- Throws:
- java.lang.IllegalArgumentException- If the host header value is not specification compliant
 
 
- 
 
-