Class AbstractApplicationAdapter

java.lang.Object
com.aspectran.core.adapter.AbstractApplicationAdapter
All Implemented Interfaces:
ApplicationAdapter
Direct Known Subclasses:
DefaultApplicationAdapter

public abstract class AbstractApplicationAdapter extends Object implements ApplicationAdapter
The Class AbstractApplicationAdapter.
Since:
2011. 3. 13.
  • Constructor Details

    • AbstractApplicationAdapter

      public AbstractApplicationAdapter(String basePath)
      Instantiates a new AbstractApplicationAdapter.
  • Method Details

    • getBasePath

      public String getBasePath()
      Description copied from interface: ApplicationAdapter
      Returns the base path that the current application is mapped to.
      Specified by:
      getBasePath in interface ApplicationAdapter
      Returns:
      the base path for this application
    • toRealPath

      public String toRealPath(String filePath) throws IOException
      Description copied from interface: ApplicationAdapter
      Returns the real path of the existing file as a canonical pathname string.
      Specified by:
      toRealPath in interface ApplicationAdapter
      Parameters:
      filePath - the relative path or classpath of the file to find
      Returns:
      the canonical pathname string of the found file
      Throws:
      IOException - If there is no file corresponding to the classpath, an exception is thrown, and if it is not the classpath, no exception is thrown because the File instance is returned regardless of the existence of the file.
    • toRealPathAsFile

      public File toRealPathAsFile(String filePath) throws IOException
      Description copied from interface: ApplicationAdapter
      Returns the real path of an existing file.
      Specified by:
      toRealPathAsFile in interface ApplicationAdapter
      Parameters:
      filePath - the relative path or classpath of the file to find
      Returns:
      the real path of the found file
      Throws:
      IOException - If there is no file corresponding to the classpath, an exception is thrown, and if it is not the classpath, no exception is thrown because the File instance is returned regardless of the existence of the file.