kr.co.hit.live.web.mapper
Class MapDirectory

java.lang.Object
  extended by kr.co.hit.live.web.mapper.MapDirectory

public class MapDirectory
extends Object

서버 트랜젝션 ID를 받아 이를 정의한 Map 파일의 File 객체를 반환하는 클래스이다. 서버 트랜젝션 ID를 Map 파일명으로 사용한다.

Since:
4.0
Author:
김형도

Field Summary
static String DEFAULT_MAP_DIRECTORY
           
static String MAP_FILE_EXTENTION
           
 
Constructor Summary
MapDirectory(String rootDir)
          생성자이다.
 
Method Summary
 File getMapFile(String path, String id)
          root 디렉토리 아래의 path 경로에 있는 Map 파일을 객체를 반환한다.
 String getMapRootPath()
          설정된 Map 파일 루트 디렉토리 경로를 반환한다.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MAP_DIRECTORY

public static final String DEFAULT_MAP_DIRECTORY
See Also:
Constant Field Values

MAP_FILE_EXTENTION

public static final String MAP_FILE_EXTENTION
See Also:
Constant Field Values
Constructor Detail

MapDirectory

public MapDirectory(String rootDir)
생성자이다. Map 파일이 저장되어 있는 디렉토리의 root를 지정하여 생성한다. 디렉토리는 클래스패스 상에 있어야 한다.

Parameters:
rootDir -
Method Detail

getMapFile

public File getMapFile(String path,
                       String id)
                throws IOException
root 디렉토리 아래의 path 경로에 있는 Map 파일을 객체를 반환한다. Map 파일 이름은 id + ".xml" 이다.

Parameters:
path - 하위 Map 디렉토리
id -
Returns:
Throws:
IOException

getMapRootPath

public String getMapRootPath()
설정된 Map 파일 루트 디렉토리 경로를 반환한다.

Returns:


Copyright © 2014. All Rights Reserved.