Interface IUserPortalRouterUrlHandler<Context extends IRoutingContext>
- Type Parameters:
Context- The type of the context data required to route to the URL.
public interface IUserPortalRouterUrlHandler<Context extends IRoutingContext>
Handles URLs for the user portal.
-
Method Summary
Modifier and TypeMethodDescriptionextractContextFromRequest(javax.servlet.http.HttpServletRequest request) Extracts the context data from an HTTP request.booleanmatches(javax.servlet.http.HttpServletRequest request) Checks if the given request matches this route.Gets the runtime class of the type parameter.toExternalUrl(Context context) Creates the external URL, using the given context data.toInternalUrl(Context context) Creates the internal URL, using the given context data.
-
Method Details
-
extractContextFromRequest
Extracts the context data from an HTTP request.- Parameters:
request- The HTTP request to extract the context data from.- Returns:
- The context data extracted from the request.
-
matches
boolean matches(javax.servlet.http.HttpServletRequest request) Checks if the given request matches this route.- Parameters:
request- The request to check.- Returns:
- True if the request matches this route, false otherwise.
-
requiredContext
-
toExternalUrl
-
toInternalUrl
-