org.jboss.virtual.plugins.context.temp
Class BasicTempInfo

java.lang.Object
  extended by org.jboss.virtual.plugins.context.temp.BasicTempInfo
All Implemented Interfaces:
TempInfo
Direct Known Subclasses:
ZipEntryTempInfo

public class BasicTempInfo
extends Object
implements TempInfo

BasicTempInfo

Author:
Ales Justin

Constructor Summary
BasicTempInfo(String path, File file, VirtualFileHandler handler)
           
 
Method Summary
 void cleanup()
          Do temp info cleanup.
 VirtualFileHandler getHandler()
          Get the new temp handler.
 String getPath()
          Get relative path to vfs context.
 File getTempFile()
          Get temp file.
 boolean isValid()
          Is the temp info still valid.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicTempInfo

public BasicTempInfo(String path,
                     File file,
                     VirtualFileHandler handler)
Method Detail

getPath

public String getPath()
Description copied from interface: TempInfo
Get relative path to vfs context.

Specified by:
getPath in interface TempInfo
Returns:
the relative path

getTempFile

public File getTempFile()
Description copied from interface: TempInfo
Get temp file.

Specified by:
getTempFile in interface TempInfo
Returns:
the temp file

cleanup

public void cleanup()
Description copied from interface: TempInfo
Do temp info cleanup.

Specified by:
cleanup in interface TempInfo

getHandler

public VirtualFileHandler getHandler()
Description copied from interface: TempInfo
Get the new temp handler.

Specified by:
getHandler in interface TempInfo
Returns:
the temp handler

isValid

public boolean isValid()
Description copied from interface: TempInfo
Is the temp info still valid.

Specified by:
isValid in interface TempInfo
Returns:
true if still valid, false otherwise

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 JBoss, A division of Red Hat, Inc. All Rights Reserved.