Package org.artifactory.request
Interface Request
- All Superinterfaces:
HttpHeadersContainter
- Author:
- Fred Simon
-
Method Summary
Modifier and TypeMethodDescriptionGet the address of the client that triggered the request.long
long
long
default RepoPath
Get the original repo path, in case of virtual involvementgetParameter
(String name) String[]
getParameterValues
(String name) getUri()
Returns the internal zip resource path if such existed in the request.boolean
boolean
Checks whether the request has an If-None-Match header specifiedboolean
boolean
boolean
Checks if the request originated from another Artifactoryboolean
boolean
isNewerThan
(long time) 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-Matchboolean
Methods inherited from interface org.artifactory.request.HttpHeadersContainter
getHeader, getHeaders, getHeaders, getHeadersKeys, getHeaderValues
-
Method Details
-
getRepoPath
RepoPath getRepoPath() -
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
-
getParameter
-
getParameterValues
-
getInputStream
- 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
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
-