TrueZIP Driver HTTP(S) 7.0-rc2

de.schlichtherle.truezip.fs.http
Class HttpEntry

java.lang.Object
  extended by de.schlichtherle.truezip.fs.FsEntry
      extended by de.schlichtherle.truezip.fs.http.HttpEntry
All Implemented Interfaces:
Entry, InputEntry<HttpEntry>, IOEntry<HttpEntry>, OutputEntry<HttpEntry>

@Immutable
@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class)
final class HttpEntry
extends FsEntry
implements IOEntry<HttpEntry>

An HTTP entry.

Author:
Christian Schlichtherle

Nested Class Summary
 
Nested classes/interfaces inherited from interface de.schlichtherle.truezip.entry.Entry
Entry.Access, Entry.Size, Entry.Type
 
Field Summary
private  URLConnection connection
           
private  HttpController controller
           
private  EntryName name
           
private static BitField<FsOutputOption> NO_OUTPUT_OPTIONS
           
private  URL url
           
 
Fields inherited from interface de.schlichtherle.truezip.entry.Entry
NULL, UNKNOWN
 
Constructor Summary
HttpEntry(FsMountPoint mountPoint, FsEntryName name, HttpController controller)
           
 
Method Summary
(package private)  URLConnection getConnection()
           
(package private)  HttpController getController()
           
 InputSocket<HttpEntry> getInputSocket()
           
 Set<String> getMembers()
           
 String getName()
           
 OutputSocket<HttpEntry> getOutputSocket()
           
 OutputSocket<HttpEntry> getOutputSocket(BitField<FsOutputOption> options, Entry template)
           
 long getSize(Entry.Size type)
           
 long getTime(Entry.Access type)
           
 Entry.Type getType()
           
(package private)  URL getUrl()
          Returns the decorated URL.
 
Methods inherited from class de.schlichtherle.truezip.fs.FsEntry
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_OUTPUT_OPTIONS

private static final BitField<FsOutputOption> NO_OUTPUT_OPTIONS

controller

private HttpController controller

name

private final EntryName name

url

private final URL url

connection

@CheckForNull
private volatile URLConnection connection
Constructor Detail

HttpEntry

HttpEntry(FsMountPoint mountPoint,
          FsEntryName name,
          HttpController controller)
Method Detail

getController

HttpController getController()

getUrl

URL getUrl()
Returns the decorated URL.


getConnection

URLConnection getConnection()
                      throws IOException
Throws:
IOException

getName

public String getName()
Specified by:
getName in interface Entry
Specified by:
getName in class FsEntry

getType

public Entry.Type getType()
Specified by:
getType in interface Entry

getSize

public long getSize(Entry.Size type)
Specified by:
getSize in interface Entry

getTime

public long getTime(Entry.Access type)
Specified by:
getTime in interface Entry

getMembers

@Nullable
public Set<String> getMembers()
Specified by:
getMembers in class FsEntry

getInputSocket

public InputSocket<HttpEntry> getInputSocket()
Specified by:
getInputSocket in interface InputEntry<HttpEntry>

getOutputSocket

public OutputSocket<HttpEntry> getOutputSocket()
Specified by:
getOutputSocket in interface OutputEntry<HttpEntry>

getOutputSocket

public OutputSocket<HttpEntry> getOutputSocket(BitField<FsOutputOption> options,
                                               @CheckForNull
                                               Entry template)

TrueZIP Driver HTTP(S) 7.0-rc2

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.