public interface WebResource
WebResource is a resource which could be send by the WebResourceSender.
To create a WebResource one of the methods of WebResources should be used.| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContent()
Returns the content of the resource as input stream.
|
Optional<Long> |
getContentLength()
Returns optional content length
|
Optional<String> |
getContentType()
Returns optional content type
|
Optional<String> |
getETag()
Returns optional etag
|
Optional<Instant> |
getLastModifiedDate()
Returns optional last modified date
|
String |
getName()
Returns the name of the resource.
|
String getName()
InputStream getContent() throws IOException
IOException - If an input or output exception occursOptional<Long> getContentLength()
Optional<String> getContentType()
Copyright © 2018. All rights reserved.