Class UriInfos
- java.lang.Object
-
- de.captaingoldfish.scim.sdk.server.utils.UriInfos
-
public class UriInfos extends Object
author Pascal Knueppel
created at: 08.11.2019 - 22:28
represents the parsed uri infos of a request
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUriInfos.UriInfosBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UriInfos.UriInfosBuilderbuilder()StringgetBaseUri()the base uri to this SCIM endpointMap<String,String>getHttpHeaders()contains the http request headers from the client that must be validatedHttpMethodgetHttpMethod()the http method that was used for this requestMap<String,String>getQueryParameters()the get parameters or the uristatic UriInfosgetRequestUrlInfos(ResourceTypeFactory resourceTypeFactory, String requestUrl, HttpMethod httpMethod, Map<String,String> httpHeaders)resolves the request uri to individual information's that are necessary to resolve the requestStringgetResourceEndpoint()the resource endpoint reference e.g.StringgetResourceId()the id of the resource for PUT, DELETE, PATCH and GET requestsResourceTypegetResourceType()the resource type to which the url pointsbooleanisSearchRequest()if the given request is a query POST requestvoidsetResourceId(String resourceId)the id of the resource for PUT, DELETE, PATCH and GET requestsStringtoString()
-
-
-
Method Detail
-
getRequestUrlInfos
public static UriInfos getRequestUrlInfos(ResourceTypeFactory resourceTypeFactory, String requestUrl, HttpMethod httpMethod, Map<String,String> httpHeaders)
resolves the request uri to individual information's that are necessary to resolve the request- Parameters:
requestUrl- the fully qualified request urlhttpHeaders- the http request headers- Returns:
- the individual request information's
-
builder
public static UriInfos.UriInfosBuilder builder()
-
getResourceEndpoint
public String getResourceEndpoint()
the resource endpoint reference e.g. "/Users" or "/Groups"
-
isSearchRequest
public boolean isSearchRequest()
if the given request is a query POST request
-
getBaseUri
public String getBaseUri()
the base uri to this SCIM endpoint
-
getResourceType
public ResourceType getResourceType()
the resource type to which the url points
-
getHttpMethod
public HttpMethod getHttpMethod()
the http method that was used for this request
-
getResourceId
public String getResourceId()
the id of the resource for PUT, DELETE, PATCH and GET requests
-
getHttpHeaders
public Map<String,String> getHttpHeaders()
contains the http request headers from the client that must be validated
-
setResourceId
public void setResourceId(String resourceId)
the id of the resource for PUT, DELETE, PATCH and GET requests
-
-