public static class WebResources.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
WebResource |
build()
Creates web resource.
|
WebResources.Builder |
withContentLength(Long length)
Sets length of web resource content.
|
WebResources.Builder |
withContentType(String contentType)
Sets the content type of the web resource.
|
WebResources.Builder |
withETag(String etag)
Sets the etag of the web resource.
|
WebResources.Builder |
withLastModifiedDate(Instant lastModifiedDate)
Sets the last modified date of the web resource.
|
WebResources.Builder |
withLastModifiedDate(long lastModifiedDate)
Sets the last modified date of the web resource.
|
public WebResources.Builder withContentLength(Long length)
length - content lengththispublic WebResources.Builder withContentType(String contentType)
contentType - content typethispublic WebResources.Builder withETag(String etag)
etag - etag of resourcethispublic WebResources.Builder withLastModifiedDate(long lastModifiedDate)
lastModifiedDate - in millisecondsthispublic WebResources.Builder withLastModifiedDate(Instant lastModifiedDate)
lastModifiedDate - last modified datethispublic WebResource build()
Copyright © 2018. All rights reserved.