public class GetItemLastModified extends JFrogService<org.jfrog.build.client.ItemLastModified>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ITEM_LAST_MODIFIED |
log, responseType, result, statusCode| Constructor and Description |
|---|
GetItemLastModified(java.lang.String path,
org.jfrog.build.api.util.Log logger) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.client.methods.HttpRequestBase |
createRequest() |
protected void |
handleEmptyEntity()
For services with responseType.OBJECT (expected a return value) may
override this function which helps to handle scenarios whereby a response body needs to be read
but do entity is found.
|
protected void |
handleUnsuccessfulResponse(org.apache.http.HttpEntity entity)
Default error handling (E.G.
|
protected void |
setResponse(java.io.InputStream stream)
Override this in order to parse the service response body (only for services that expect to have body in the response).
|
encodeUrl, ensureRequirements, execute, getHeaders, getMapper, getResult, getStatusCode, setHeaders, setResult, setStatusCode, throwExceptionpublic static final java.lang.String ITEM_LAST_MODIFIED
public GetItemLastModified(java.lang.String path,
org.jfrog.build.api.util.Log logger)
public org.apache.http.client.methods.HttpRequestBase createRequest()
createRequest in class JFrogService<org.jfrog.build.client.ItemLastModified>protected void handleEmptyEntity()
throws java.io.IOException
JFrogServicehandleEmptyEntity in class JFrogService<org.jfrog.build.client.ItemLastModified>java.io.IOExceptionprotected void setResponse(java.io.InputStream stream)
throws java.io.IOException
JFrogServicesetResponse in class JFrogService<org.jfrog.build.client.ItemLastModified>stream - - Inout stream of the response body.java.io.IOExceptionprotected void handleUnsuccessfulResponse(org.apache.http.HttpEntity entity)
throws java.io.IOException
JFrogServicehandleUnsuccessfulResponse in class JFrogService<org.jfrog.build.client.ItemLastModified>entity - - The returned failure response.java.io.IOException