HttpContent.Factory implementation which takes a Resource and fakes this resource as
an entry in every directory. If any request is made for this resources file name, and it is not
already present in that directory then the resource contained in this factory will be served instead.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final HttpContent. | |
| private final String | |
| private final Resource | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HttpContent | getContent(String
The path within the context to the resource path)Implements org. |
| public Resource | |
| protected boolean | |
| public String |
| _contentType | back to summary |
|---|---|
| private final String _contentType | |
| _factory | back to summary |
|---|---|
| private final HttpContent. | |
| _matchSuffix | back to summary |
|---|---|
| private final String _matchSuffix | |
| _resource | back to summary |
|---|---|
| private final Resource _resource | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| VirtualHttpContentFactory | back to summary |
|---|---|
| public VirtualHttpContentFactory(HttpContent. | |
| getContent | back to summary |
|---|---|
| public HttpContent getContent(String path) throws IOException Implements org.
| |
| getResource | back to summary |
|---|---|
public Resource getResource()
| |
| matchResource | back to summary |
|---|---|
| protected boolean matchResource(String path) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |