- All Implemented Interfaces:
- Authority
public class BasicAuthority
extends Object
implements Authority
Basic implementation for Authority Interface.
Authority information is calculated based on following procedure.
1. Optionally default host and default port can be provided as ServletContext Parameters in web.xml.
Once it's provided, default host and default port are used to construct authority information.
2. If default host and default port are not provided, host and port from current HttpServletRequest
will be used if available.
3. If HttpServletRequest is not available, jetty host/port will be used.
This is required for junit tests.