public interface HttpResourceFactory
HttpResource
.Modifier and Type | Method and Description |
---|---|
void |
addHttpFileDescriber(HttpFileDescriber httpFileDescriber)
Adds a
HttpFileDescriber to describe the HttpFile
instances. |
HttpResource |
createHttpResource(String applicationCanonicalPath)
Creates the
HttpResponse . |
void addHttpFileDescriber(HttpFileDescriber httpFileDescriber)
Adds a HttpFileDescriber
to describe the HttpFile
instances.
The HttpFileDescriber
instances are to be used in the order
added. Once a HttpFileDescription
is provided, the remaining
HttpFileDescriber
instances will not be used.
httpFileDescriber
- HttpFileDescriber
to describe the HttpFile
.HttpResource createHttpResource(String applicationCanonicalPath) throws IOException
HttpResponse
.applicationCanonicalPath
- Application canonical path to the HttpResource
. See
the HttpApplicationLocation
for obtaining this path
from the HttpRequest
request URI.HttpResource
.IOException
- If failure in finding the HttpResource
.Copyright © 2005–2016. All rights reserved.