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
  • Method Details

    • 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 url
      httpHeaders - the http request headers
      Returns:
      the individual request information's
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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
    • getQueryParameters

      public Map<String,String> getQueryParameters()
      the get parameters or the uri
    • 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