Skip navigation links
B C D G H J O R S T W 

B

build() - Method in class com.github.sdorra.webresources.WebResources.Builder
Creates web resource.
builder(String, ThrowingSupplier<InputStream, IOException>) - Static method in class com.github.sdorra.webresources.WebResources
Creates builder for a WebResource.

C

com.github.sdorra.webresources - package com.github.sdorra.webresources
Main api package for web-resources.
com.github.sdorra.webresources.internal - package com.github.sdorra.webresources.internal
Internal package.
ContentTypeResolver - Class in com.github.sdorra.webresources
Detects the content type of a path.
ContentTypeResolver() - Constructor for class com.github.sdorra.webresources.ContentTypeResolver
 
create() - Static method in class com.github.sdorra.webresources.WebResourceSender
Creates new WebResourceSender.

D

detect(String) - Method in class com.github.sdorra.webresources.ContentTypeResolver
Detects the content type of the filename.
detect(String) - Method in class com.github.sdorra.webresources.internal.JDKContentTypeResolver
 
detect(String) - Method in class com.github.sdorra.webresources.internal.SpotterContentTypeResolver
 
detect(String) - Method in class com.github.sdorra.webresources.internal.TikaContentTypeResolver
 

G

get() - Method in interface com.github.sdorra.webresources.ThrowingSupplier
Gets the the result.
get(HttpServletRequest, HttpServletResponse) - Method in class com.github.sdorra.webresources.WebResourceSender.Sender
Sends the resource to the client with content.
getContent() - Method in interface com.github.sdorra.webresources.WebResource
Returns the content of the resource as input stream.
getContentLength() - Method in interface com.github.sdorra.webresources.WebResource
Returns optional content length
getContentType() - Method in interface com.github.sdorra.webresources.WebResource
Returns optional content type
getETag() - Method in interface com.github.sdorra.webresources.WebResource
Returns optional etag
getLastModifiedDate() - Method in interface com.github.sdorra.webresources.WebResource
Returns optional last modified date
getName() - Method in interface com.github.sdorra.webresources.WebResource
Returns the name of the resource.

H

head(HttpServletRequest, HttpServletResponse) - Method in class com.github.sdorra.webresources.WebResourceSender.Sender
Sends the resource to the client without content.

J

JDKContentTypeResolver - Class in com.github.sdorra.webresources.internal
ContentTypeResolver which uses FileNameMap of the jdk.
JDKContentTypeResolver() - Constructor for class com.github.sdorra.webresources.internal.JDKContentTypeResolver
 

O

of(URL) - Static method in class com.github.sdorra.webresources.WebResources
Creates a WebResource from a URL, if the url is a file url WebResources.of(Path) is internally used.
of(File) - Static method in class com.github.sdorra.webresources.WebResources
Creates a WebResource from a file.
of(Path) - Static method in class com.github.sdorra.webresources.WebResources
Creates a WebResource from a path.

R

resource(Path) - Method in class com.github.sdorra.webresources.WebResourceSender
Creates a WebResource for the path and calls WebResourceSender.resource(WebResource).
resource(File) - Method in class com.github.sdorra.webresources.WebResourceSender
Creates a WebResource for the file and calls WebResourceSender.resource(WebResource).
resource(URL) - Method in class com.github.sdorra.webresources.WebResourceSender
Creates a WebResource for the url and calls WebResourceSender.resource(WebResource).
resource(WebResource) - Method in class com.github.sdorra.webresources.WebResourceSender
Creates sender for the given web resource.

S

send(HttpServletRequest, HttpServletResponse) - Method in class com.github.sdorra.webresources.WebResourceSender.Sender
Sends the resource to the client.
SpotterContentTypeResolver - Class in com.github.sdorra.webresources.internal
ContentTypeResolver which uses the spotter library.
SpotterContentTypeResolver() - Constructor for class com.github.sdorra.webresources.internal.SpotterContentTypeResolver
 

T

ThrowingSupplier<T,E extends Throwable> - Interface in com.github.sdorra.webresources
A throwing supplier is a functional interface which consists on a single get function which is able to throw an exception.
TikaContentTypeResolver - Class in com.github.sdorra.webresources.internal
ContentTypeResolver which apache tika.
TikaContentTypeResolver() - Constructor for class com.github.sdorra.webresources.internal.TikaContentTypeResolver
 

W

WebResource - Interface in com.github.sdorra.webresources
WebResource is a resource which could be send by the WebResourceSender.
WebResources - Class in com.github.sdorra.webresources
WebResources provides util methods to create WebResource.
WebResources.Builder - Class in com.github.sdorra.webresources
Web resource builder.
WebResourceSender - Class in com.github.sdorra.webresources
Serves WebResource over http, using the servlet api.
WebResourceSender.Sender - Class in com.github.sdorra.webresources
Sends a web resource to client using the servlet api.
withBufferSize(int) - Method in class com.github.sdorra.webresources.WebResourceSender
Sets the size of used buffers.
withContentLength(Long) - Method in class com.github.sdorra.webresources.WebResources.Builder
Sets length of web resource content.
withContentType(String) - Method in class com.github.sdorra.webresources.WebResources.Builder
Sets the content type of the web resource.
withETag(String) - Method in class com.github.sdorra.webresources.WebResources.Builder
Sets the etag of the web resource.
withExpires(long, TimeUnit) - Method in class com.github.sdorra.webresources.WebResourceSender
Sets the default expiration date for the resources.
withGZIP() - Method in class com.github.sdorra.webresources.WebResourceSender
Enables gzip compression.
withGZIPMinLength(long) - Method in class com.github.sdorra.webresources.WebResourceSender
Sets the minimum required content length for gzip compression.
withLastModifiedDate(long) - Method in class com.github.sdorra.webresources.WebResources.Builder
Sets the last modified date of the web resource.
withLastModifiedDate(Instant) - Method in class com.github.sdorra.webresources.WebResources.Builder
Sets the last modified date of the web resource.
B C D G H J O R S T W 
Skip navigation links

Copyright © 2018. All rights reserved.