Interface Request

    • Method Detail

      • isChecksum

        boolean isChecksum()
      • isFromAnotherArtifactory

        boolean isFromAnotherArtifactory()
        Checks if the request originated from another Artifactory
        Returns:
        True if the request originated from another Artifactory.
      • isHeadOnly

        boolean isHeadOnly()
      • getLastModified

        long getLastModified()
      • getIfModifiedSince

        long getIfModifiedSince()
      • hasIfModifiedSince

        boolean hasIfModifiedSince()
      • isNewerThan

        boolean isNewerThan​(long time)
      • getServletContextUrl

        java.lang.String getServletContextUrl()
      • getUri

        java.lang.String getUri()
      • hasProperties

        boolean hasProperties()
      • getParameters

        java.util.Map<java.lang.String,​java.lang.String[]> getParameters()
      • getParameter

        java.lang.String getParameter​(java.lang.String name)
      • getParameterValues

        java.lang.String[] getParameterValues​(java.lang.String name)
      • getInputStream

        java.io.InputStream getInputStream()
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • getContentLength

        long getContentLength()
        Returns:
        an integer containing the length in bytes of the request body or -1 if the length is not known
      • getClientAddress

        java.lang.String getClientAddress()
        Get the address of the client that triggered the request.
        Returns:
        The client IP address as a string.
      • getZipResourcePath

        java.lang.String getZipResourcePath()
        Returns the internal zip resource path if such existed in the request.

        For example if the request path is /path/to/zip!/path/to/resource/in/zip the method will return the zip resource path: '/path/to/zip' as the root path.

        Returns:
        The zip resource path. Null or empty is such doesn't exist in the request path.
      • isZipResourceRequest

        boolean isZipResourceRequest()
        Returns:
        True is the request is for internal zip resource
        See Also:
        getZipResourcePath()
      • isNoneMatch

        boolean isNoneMatch​(java.lang.String etag)
        Checks whether an entity with the provided etag does not already exist by comparing it to the request's If-None-Match
      • hasIfNoneMatch

        boolean hasIfNoneMatch()
        Checks whether the request has an If-None-Match header specified
        Returns:
        Request has non-null If-None-Match