Class MetadataQueryRequestDecoder

    • Field Detail

      • DETECT_DUPLICATES_PARAM

        @Nonnull
        @NotEmpty
        public static final String DETECT_DUPLICATES_PARAM
        Name of the query parameter carrying the detectDuplicateEntityIDs: "detectDuplicateEntityIDs" .
        See Also:
        Constant Field Values
      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
    • Constructor Detail

      • MetadataQueryRequestDecoder

        public MetadataQueryRequestDecoder()
    • Method Detail

      • getEntityID

        @Nonnull
        @NotEmpty
        protected String getEntityID​(@Nonnull
                                     javax.servlet.http.HttpServletRequest request)
                              throws MessageDecodingException
        Get the entityID parameter.
        Parameters:
        request - current HTTP request
        Returns:
        the entityID
        Throws:
        MessageDecodingException - thrown if the request does not contain an entityID
      • getProtocol

        @Nullable
        protected String getProtocol​(@Nonnull
                                     javax.servlet.http.HttpServletRequest request)
        Get the protocol.
        Parameters:
        request - current HTTP request
        Returns:
        the protocol, or null
      • getDetectDuplicateEntityIDs

        @Nullable
        protected DetectDuplicateEntityIDs getDetectDuplicateEntityIDs​(@Nonnull
                                                                       javax.servlet.http.HttpServletRequest request)
                                                                throws MessageDecodingException
        Get the strategy for duplicate entityID detection.
        Parameters:
        request - current HTTP request
        Returns:
        the strategy, or null
        Throws:
        MessageDecodingException - if the request request contains an invalid value for detectDuplicateEntityIDs