Interface Request

All Superinterfaces:
HttpHeadersContainter

public interface Request extends HttpHeadersContainter
Author:
Fred Simon
  • Method Details

    • getRepoPath

      RepoPath getRepoPath()
    • getOriginalRepoPath

      default RepoPath getOriginalRepoPath()
      Get the original repo path, in case of virtual involvement
    • 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

      String getServletContextUrl()
    • getUri

      String getUri()
    • getProperties

      Properties getProperties()
    • hasProperties

      boolean hasProperties()
    • getParameters

      Map<String,String[]> getParameters()
    • getParameter

      String getParameter(String name)
    • getParameterValues

      String[] getParameterValues(String name)
    • getInputStream

      InputStream getInputStream() throws IOException
      Throws:
      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

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

      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:
    • isNoneMatch

      boolean isNoneMatch(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