Class HttpHandlerRegistration
java.lang.Object
org.glassfish.grizzly.http.server.HttpHandlerRegistration
Class representing
HttpHandler registration information on a
HttpServer.
An instance of the class could be created either from String using
fromString(java.lang.String) method, or builder builder().- Author:
- Alexey Stashok
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()bulder()Deprecated.typo :(booleanstatic HttpHandlerRegistrationfromString(String mapping) Create a registration from the mappingString.inthashCode()
-
Field Details
-
ROOT
-
-
Method Details
-
builder
- Returns:
- the HttpHandlerRegistration builder.
-
bulder
Deprecated.typo :(- Returns:
- the HttpHandlerRegistration builder.
-
fromString
Create a registration from the mappingString. The part of the mapping before the second slash '/' occurrence will be treated as context-path and the remainder will be treated as a url-pattern. For example: 1) "" will be treated as context-path("") and url-pattern(""); 2) "/" will be treated as context-path("") and url-pattern("/"); 3) "/a/b/c" will be treated as context-path("/a") and url-pattern("/b/c"); 4) "/*" will be treated as context-path("") and url-pattern("/*") 5) "*.jpg" will be treated as context-path("") and url-pattern("*.jpg")- Parameters:
mapping- theString- Returns:
HttpHandlerRegistration
-
getContextPath
- Returns:
- context-path part of the registration
-
getUrlPattern
- Returns:
- url-pattern part of the registration
-
hashCode
public int hashCode() -
equals
-