Class ResourceLinkMapperFactory
- java.lang.Object
-
- de.xima.fc.user_portal.api.resources.ResourceLinkMapperFactory
-
@ApplicationScoped public class ResourceLinkMapperFactory extends Object
Factory forIResourceLinkMapper
.
-
-
Constructor Summary
Constructors Constructor Description ResourceLinkMapperFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IResourceLinkMapper
nativeResourceLinkMapper(javax.servlet.http.HttpServletRequest request)
IResourceLinkMapper
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.IResourceLinkMapper
resourceLinkMapper(String baseUrl, javax.servlet.http.HttpServletRequest request)
IResourceLinkMapper
resourceLinkMapper(javax.servlet.http.HttpServletRequest request)
IResourceLinkMapper
webSocketResourceLinkMapper(javax.servlet.http.HttpServletRequest request)
-
-
-
Method Detail
-
nativeResourceLinkMapper
public IResourceLinkMapper nativeResourceLinkMapper(javax.servlet.http.HttpServletRequest request)
-
resourceLinkMapper
public IResourceLinkMapper resourceLinkMapper(javax.servlet.http.HttpServletRequest request)
-
resourceLinkMapper
public IResourceLinkMapper resourceLinkMapper(String baseUrl, javax.servlet.http.HttpServletRequest request)
-
resourceLinkMapper
public IResourceLinkMapper 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.- 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)
-
-