kr.co.hit.live.web.mapper.output.impl
Class XFrameWebFileControlResponseWriter

java.lang.Object
  extended by kr.co.hit.live.web.mapper.output.impl.AbstractResponseWriter
      extended by kr.co.hit.live.web.mapper.output.impl.XFrameWebFileControlResponseWriter
All Implemented Interfaces:
ResponseWriter

public class XFrameWebFileControlResponseWriter
extends AbstractResponseWriter

XFrame의 WEB File Control 사용시 Response 데이터 방식으로 출력하는 ResponseWriter 구현 클래스이다. Mapping 파일의 아래에 정의된 mapping된 대로 결과를 구분자로 구별하여 HttpServletResponse로 바로 출력한다. live-config.properties의 Repository Configuration 항목에 live.repository.local.config 지정된 파일내용을 기준으로 업로드된 파일을 저장하고 저장되면서 변경된 파일명에 대해서 클라이언트에 리턴하기 위해 리턴값의 키는 "SaveFileName" 으로 지정되어 있다.

Since:
5.1
Author:
노준훈

Field Summary
protected static String FG_DATA_DEL
           
protected static String FG_DATAEND_DEL
           
protected static String FG_DATASTART_DEL
           
protected static String FG_ERROR
           
protected static String FG_SAVE_FILE_NAME
           
protected static String FG_SUCCESS
           
 
Fields inherited from class kr.co.hit.live.web.mapper.output.impl.AbstractResponseWriter
DEFAULT_CLIENT_MESSAGE_KEY, LINE_SEPARATOR
 
Constructor Summary
XFrameWebFileControlResponseWriter(Output output)
           
 
Method Summary
protected  String getForwardPath()
          출력이 종료된 후 Forward 할 경우 Forward 할 URL 경로를 반환한다.
protected  void writeBody(ValueObjectAssembler voa, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          데이터를 출력하는 메소드이다.
protected  void writeException(Throwable thr, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          오류 상황을 출력하는 메소드이다.
protected  void writeHead(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          전체 출력 작업 중 맨처음에 호출되는 메소드이다.
protected  void writeMessage(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          데이터 출력 후 호출되는 메소드이다.
protected  void writeTail(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          전체 출력 작업 중 마지막에 호출되는 메소드이다.
 
Methods inherited from class kr.co.hit.live.web.mapper.output.impl.AbstractResponseWriter
getOutput, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FG_DATA_DEL

protected static final String FG_DATA_DEL

FG_DATASTART_DEL

protected static final String FG_DATASTART_DEL

FG_DATAEND_DEL

protected static final String FG_DATAEND_DEL

FG_SUCCESS

protected static final String FG_SUCCESS
See Also:
Constant Field Values

FG_ERROR

protected static final String FG_ERROR
See Also:
Constant Field Values

FG_SAVE_FILE_NAME

protected static final String FG_SAVE_FILE_NAME
See Also:
Constant Field Values
Constructor Detail

XFrameWebFileControlResponseWriter

public XFrameWebFileControlResponseWriter(Output output)
Method Detail

getForwardPath

protected String getForwardPath()
Description copied from class: AbstractResponseWriter
출력이 종료된 후 Forward 할 경우 Forward 할 URL 경로를 반환한다.

Specified by:
getForwardPath in class AbstractResponseWriter
Returns:

writeBody

protected void writeBody(ValueObjectAssembler voa,
                         javax.servlet.http.HttpServletRequest req,
                         javax.servlet.http.HttpServletResponse res)
                  throws IOException
Description copied from class: AbstractResponseWriter
데이터를 출력하는 메소드이다.

Specified by:
writeBody in class AbstractResponseWriter
Throws:
IOException

writeException

protected void writeException(Throwable thr,
                              javax.servlet.http.HttpServletRequest req,
                              javax.servlet.http.HttpServletResponse res)
                       throws IOException
Description copied from class: AbstractResponseWriter
오류 상황을 출력하는 메소드이다.

Specified by:
writeException in class AbstractResponseWriter
Throws:
IOException

writeHead

protected void writeHead(javax.servlet.http.HttpServletRequest req,
                         javax.servlet.http.HttpServletResponse res)
                  throws IOException
Description copied from class: AbstractResponseWriter
전체 출력 작업 중 맨처음에 호출되는 메소드이다. HttpServletResponse의 charset을 설정하거나, XML 출력의 경우 과 같은 XML 시작 태그를 작성하는 용도로 사용된다.

Specified by:
writeHead in class AbstractResponseWriter
Throws:
IOException

writeMessage

protected void writeMessage(javax.servlet.http.HttpServletRequest req,
                            javax.servlet.http.HttpServletResponse res)
                     throws IOException
Description copied from class: AbstractResponseWriter
데이터 출력 후 호출되는 메소드이다. 정상 처리 메시지를 출력한다.

Specified by:
writeMessage in class AbstractResponseWriter
Throws:
IOException

writeTail

protected void writeTail(javax.servlet.http.HttpServletRequest req,
                         javax.servlet.http.HttpServletResponse res)
                  throws IOException
Description copied from class: AbstractResponseWriter
전체 출력 작업 중 마지막에 호출되는 메소드이다.

Specified by:
writeTail in class AbstractResponseWriter
Throws:
IOException


Copyright © 2014. All Rights Reserved.