Class UserPortalRestConfigManager
java.lang.Object
de.xima.fc.user_portal.api.config.UserPortalRestConfigManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the local user portal REST API configuration for the server sending a request to itself.localConfig(javax.servlet.http.HttpServletRequest request) Gets the local user portal REST API configuration for the server sending a request to itself.localUrl(javax.servlet.http.HttpServletRequest request) Gets the local (loopback) base URL for the user portal REST API.voidonServletContextInitialized(javax.servlet.ServletContext context) remoteConfig(javax.servlet.http.HttpServletRequest request) Gets the remote user portal REST API configuration for the client sending a request to the server.remoteUrl(javax.servlet.http.HttpServletRequest request) Gets the remote base URL for the user portal REST API.
-
Constructor Details
-
UserPortalRestConfigManager
public UserPortalRestConfigManager()
-
-
Method Details
-
onServletContextInitialized
public void onServletContextInitialized(@Observes @Initialized(javax.enterprise.context.ApplicationScoped.class) javax.servlet.ServletContext context) -
config
Gets the local user portal REST API configuration for the server sending a request to itself.- Returns:
- The default user portal REST API configuration.
-
localConfig
Gets the local user portal REST API configuration for the server sending a request to itself.- Returns:
- The default user portal REST API configuration.
-
localUrl
Gets the local (loopback) base URL for the user portal REST API.- Parameters:
request- The current servlet request.- Returns:
- The local base URL.
-
remoteConfig
Gets the remote user portal REST API configuration for the client sending a request to the server.- Returns:
- The default user portal REST API configuration.
-
remoteUrl
Gets the remote base URL for the user portal REST API.- Returns:
- The remote base URL.
-