TrueZIP Driver HTTP(S) 7.0-rc2

de.schlichtherle.truezip.fs.http
Class HttpController

java.lang.Object
  extended by de.schlichtherle.truezip.fs.FsController<FsModel>
      extended by de.schlichtherle.truezip.fs.http.HttpController

@ThreadSafe
@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class)
final class HttpController
extends FsController<FsModel>

A file system controller for the HTTP(S) schemes.

Author:
Christian Schlichtherle

Field Summary
private  HttpDriver driver
           
private  FsModel model
           
 
Constructor Summary
HttpController(FsModel model, HttpDriver driver)
           
 
Method Summary
 Icon getClosedIcon()
           
(package private)  HttpDriver getDriver()
           
 HttpEntry getEntry(FsEntryName name)
           
 InputSocket<?> getInputSocket(FsEntryName name, BitField<FsInputOption> options)
           
 FsModel getModel()
           
 Icon getOpenIcon()
           
 OutputSocket<?> getOutputSocket(FsEntryName name, BitField<FsOutputOption> options, Entry template)
           
 FsController<?> getParent()
           
 boolean isReadable(FsEntryName name)
           
 boolean isReadOnly()
           
 boolean isWritable(FsEntryName name)
           
 void mknod(FsEntryName name, Entry.Type type, BitField<FsOutputOption> options, Entry template)
           
 void setReadOnly(FsEntryName name)
           
 boolean setTime(FsEntryName name, BitField<Entry.Access> types, long value)
           
<X extends IOException>
void
sync(BitField<FsSyncOption> options, ExceptionHandler<? super FsSyncException,X> handler)
           
 void unlink(FsEntryName name)
           
 
Methods inherited from class de.schlichtherle.truezip.fs.FsController
equals, hashCode, sync, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

driver

private final HttpDriver driver

model

private final FsModel model
Constructor Detail

HttpController

HttpController(FsModel model,
               HttpDriver driver)
Method Detail

getModel

public FsModel getModel()
Specified by:
getModel in class FsController<FsModel>

getDriver

HttpDriver getDriver()

getParent

public FsController<?> getParent()
Specified by:
getParent in class FsController<FsModel>

getOpenIcon

public Icon getOpenIcon()
                 throws IOException
Specified by:
getOpenIcon in class FsController<FsModel>
Throws:
IOException

getClosedIcon

public Icon getClosedIcon()
                   throws IOException
Specified by:
getClosedIcon in class FsController<FsModel>
Throws:
IOException

isReadOnly

public boolean isReadOnly()
                   throws IOException
Specified by:
isReadOnly in class FsController<FsModel>
Throws:
IOException

getEntry

public HttpEntry getEntry(FsEntryName name)
                   throws IOException
Specified by:
getEntry in class FsController<FsModel>
Throws:
IOException

isReadable

public boolean isReadable(FsEntryName name)
                   throws IOException
Specified by:
isReadable in class FsController<FsModel>
Throws:
IOException

isWritable

public boolean isWritable(FsEntryName name)
                   throws IOException
Specified by:
isWritable in class FsController<FsModel>
Throws:
IOException

setReadOnly

public void setReadOnly(FsEntryName name)
                 throws IOException
Specified by:
setReadOnly in class FsController<FsModel>
Throws:
IOException

setTime

public boolean setTime(FsEntryName name,
                       BitField<Entry.Access> types,
                       long value)
                throws IOException
Specified by:
setTime in class FsController<FsModel>
Throws:
IOException

getInputSocket

public InputSocket<?> getInputSocket(FsEntryName name,
                                     BitField<FsInputOption> options)
Specified by:
getInputSocket in class FsController<FsModel>

getOutputSocket

public OutputSocket<?> getOutputSocket(FsEntryName name,
                                       BitField<FsOutputOption> options,
                                       @CheckForNull
                                       Entry template)
Specified by:
getOutputSocket in class FsController<FsModel>

mknod

public void mknod(FsEntryName name,
                  Entry.Type type,
                  BitField<FsOutputOption> options,
                  @CheckForNull
                  Entry template)
           throws IOException
Specified by:
mknod in class FsController<FsModel>
Throws:
IOException

unlink

public void unlink(FsEntryName name)
            throws IOException
Specified by:
unlink in class FsController<FsModel>
Throws:
IOException

sync

public <X extends IOException> void sync(BitField<FsSyncOption> options,
                                         ExceptionHandler<? super FsSyncException,X> handler)
          throws X extends IOException
Specified by:
sync in class FsController<FsModel>
Throws:
X extends IOException

TrueZIP Driver HTTP(S) 7.0-rc2

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