@Immutable public class HttpEntry extends FsEntry implements IOEntry<HttpEntry>
Entry.Access, Entry.Size, Entry.Type| Modifier and Type | Field and Description |
|---|---|
private HttpController |
controller |
private String |
name |
protected URI |
uri |
ALL_ACCESS_SET, ALL_SIZE_SET, ALL_TYPE_SET, DIRECTORY_TYPE_SET, FILE_TYPE_SET, SPECIAL_TYPE_SET, SYMLINK_TYPE_SET, UNKNOWN| Constructor and Description |
|---|
HttpEntry(HttpController controller,
FsEntryName name) |
| Modifier and Type | Method and Description |
|---|---|
private org.apache.http.HttpResponse |
executeGet() |
private org.apache.http.HttpResponse |
executeHead() |
private String |
getHeaderField(String name) |
InputSocket<HttpEntry> |
getInputSocket() |
protected InputStream |
getInputStream() |
Set<String> |
getMembers() |
String |
getName() |
OutputSocket<HttpEntry> |
getOutputSocket() |
protected OutputStream |
getOutputStream() |
(package private) IOPool<?> |
getPool() |
long |
getSize(Entry.Size type) |
long |
getTime(Entry.Access type) |
Set<Entry.Type> |
getTypes() |
boolean |
isType(Entry.Type type) |
protected org.apache.http.client.methods.HttpUriRequest |
newGet() |
protected org.apache.http.client.methods.HttpUriRequest |
newHead() |
protected InputSocket<HttpEntry> |
newInputSocket(BitField<FsInputOption> options) |
protected OutputSocket<HttpEntry> |
newOutputSocket(BitField<FsOutputOption> options,
Entry template) |
private final HttpController controller
private final String name
protected final URI uri
HttpEntry(HttpController controller, FsEntryName name)
private org.apache.http.HttpResponse executeGet()
throws IOException
IOExceptionprivate org.apache.http.HttpResponse executeHead()
throws IOException
IOException@CheckForNull private String getHeaderField(String name) throws IOException
IOExceptionpublic InputSocket<HttpEntry> getInputSocket()
getInputSocket in interface InputEntry<HttpEntry>protected InputStream getInputStream() throws IOException
IOException@Nullable public Set<String> getMembers()
getMembers in class FsEntrypublic String getName()
public OutputSocket<HttpEntry> getOutputSocket()
getOutputSocket in interface OutputEntry<HttpEntry>protected OutputStream getOutputStream() throws IOException
IOExceptionfinal IOPool<?> getPool()
public long getSize(Entry.Size type)
public long getTime(Entry.Access type)
public Set<Entry.Type> getTypes()
public boolean isType(Entry.Type type)
protected org.apache.http.client.methods.HttpUriRequest newGet()
protected org.apache.http.client.methods.HttpUriRequest newHead()
protected InputSocket<HttpEntry> newInputSocket(BitField<FsInputOption> options)
protected OutputSocket<HttpEntry> newOutputSocket(BitField<FsOutputOption> options, @CheckForNull Entry template)
Copyright © 2005-2012 Schlichtherle IT Services. All Rights Reserved.