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

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

public class TrustFormXmlResponseWriter
extends XmlResponseWriter

TrustForm 4.0 의 XML 구조로 결과 데이터를 뿌려주는 ResponseWriter의 구현 클래스.

Since:
4.0
Author:
kimhd

Field Summary
 
Fields inherited from class kr.co.hit.live.web.mapper.output.impl.XmlResponseWriter
DEFAULT_ENCODING, rootElements
 
Fields inherited from class kr.co.hit.live.web.mapper.output.impl.AbstractResponseWriter
DEFAULT_CLIENT_MESSAGE_KEY, LINE_SEPARATOR
 
Constructor Summary
TrustFormXmlResponseWriter(Output output)
           
 
Method Summary
protected  void writeException(Throwable tr, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          다음과 같은 instance 구조를 사용하여 오류를 출력한다.
protected  void writeMessage(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          다음과 같은 instance 구조를 사용하여 메시지를 출력한다.
 
Methods inherited from class kr.co.hit.live.web.mapper.output.impl.XmlResponseWriter
getForwardPath, writeBody, writeHead, writeTail
 
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
 

Constructor Detail

TrustFormXmlResponseWriter

public TrustFormXmlResponseWriter(Output output)
Method Detail

writeException

protected void writeException(Throwable tr,
                              javax.servlet.http.HttpServletRequest req,
                              javax.servlet.http.HttpServletResponse res)
                       throws IOException
Description copied from class: XmlResponseWriter
다음과 같은 instance 구조를 사용하여 오류를 출력한다.
   <message>
      <type>error</type>
      <code></code>
      <msg></msg>
      <description></description>
   </message>
 
위와 다른 구조로 오류를 출력하고자 할 경우에는 이 클래스를 상속받아 하위 클래스에서 재정의한다.

Overrides:
writeException in class XmlResponseWriter
Throws:
IOException

writeMessage

protected void writeMessage(javax.servlet.http.HttpServletRequest req,
                            javax.servlet.http.HttpServletResponse res)
                     throws IOException
Description copied from class: XmlResponseWriter
다음과 같은 instance 구조를 사용하여 메시지를 출력한다.
   <message>
      <type>info</type>
      <code></code>
      <msg></msg>
      <description></description>
   </message>
 
위와 다른 구조로 오류를 출력하고자 할 경우에는 이 클래스를 상속받아 하위 클래스에서 재정의한다.

Overrides:
writeMessage in class XmlResponseWriter
Throws:
IOException


Copyright © 2014. All Rights Reserved.