Package org.artifactory.request
Interface Request
-
- All Superinterfaces:
HttpHeadersContainter
public interface Request extends HttpHeadersContainter
- Author:
- Fred Simon
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetClientAddress()Get the address of the client that triggered the request.longgetContentLength()longgetIfModifiedSince()java.io.InputStreamgetInputStream()longgetLastModified()java.lang.StringgetParameter(java.lang.String name)java.util.Map<java.lang.String,java.lang.String[]>getParameters()java.lang.String[]getParameterValues(java.lang.String name)PropertiesgetProperties()RepoPathgetRepoPath()java.lang.StringgetServletContextUrl()java.lang.StringgetUri()java.lang.StringgetZipResourcePath()Returns the internal zip resource path if such existed in the request.booleanhasIfModifiedSince()booleanhasIfNoneMatch()Checks whether the request has an If-None-Match header specifiedbooleanhasProperties()booleanisChecksum()booleanisFromAnotherArtifactory()Checks if the request originated from another ArtifactorybooleanisHeadOnly()booleanisNewerThan(long time)booleanisNoneMatch(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-MatchbooleanisZipResourceRequest()-
Methods inherited from interface org.artifactory.request.HttpHeadersContainter
getHeader, getHeaders, getHeaders, getHeadersKeys, getHeaderValues
-
-
-
-
Method Detail
-
getRepoPath
RepoPath getRepoPath()
-
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()
-
getProperties
Properties getProperties()
-
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
-
-