Class ResourceLinkMapperFactory
java.lang.Object
de.xima.fc.user_portal.api.resources.ResourceLinkMapperFactory
Factory for
IResourceLinkMapper.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnativeResourceLinkMapper(javax.servlet.http.HttpServletRequest request) resourceLinkMapper(String sourceBaseUrl, String targetBaseUrl) Create a new resource link mapper that maps links starting with the source base URL to the target base URL.resourceLinkMapper(String baseUrl, javax.servlet.http.HttpServletRequest request) resourceLinkMapper(javax.servlet.http.HttpServletRequest request) webSocketResourceLinkMapper(javax.servlet.http.HttpServletRequest request)
-
Constructor Details
-
ResourceLinkMapperFactory
public ResourceLinkMapperFactory()
-
-
Method Details
-
nativeResourceLinkMapper
-
resourceLinkMapper
-
resourceLinkMapper
public IResourceLinkMapper resourceLinkMapper(String baseUrl, javax.servlet.http.HttpServletRequest request) -
resourceLinkMapper
Create a new resource link mapper that maps links starting with the source base URL to the target base URL.- Parameters:
sourceBaseUrl- The source base URL of the REST API.targetBaseUrl- The target base URL of the REST API.- Returns:
- A resource link mapper that maps from source to target.
-
webSocketResourceLinkMapper
public IResourceLinkMapper webSocketResourceLinkMapper(javax.servlet.http.HttpServletRequest request)
-