|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkr.co.hit.live.web.mapper.output.impl.AbstractResponseWriter
kr.co.hit.live.web.mapper.output.impl.XmlResponseWriter
public class XmlResponseWriter
XML 형태를 결과를 출력하는 ResponseWriter 구현 클래스이다. Mapping 파일의 <output> 아래에 정의된 mapping된 대로 결과를 XML 형태로 HttpServletResponse로 바로 출력한다.
| Field Summary | |
|---|---|
protected static String |
DEFAULT_ENCODING
|
protected List<String> |
rootElements
|
| Fields inherited from class kr.co.hit.live.web.mapper.output.impl.AbstractResponseWriter |
|---|
DEFAULT_CLIENT_MESSAGE_KEY, LINE_SEPARATOR |
| Constructor Summary | |
|---|---|
XmlResponseWriter(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 tr,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
다음과 같은 instance 구조를 사용하여 오류를 출력한다. |
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)
다음과 같은 instance 구조를 사용하여 메시지를 출력한다. |
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 |
|---|
protected static final String DEFAULT_ENCODING
protected List<String> rootElements
| Constructor Detail |
|---|
public XmlResponseWriter(Output output)
| Method Detail |
|---|
protected void writeHead(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException
AbstractResponseWriter
writeHead in class AbstractResponseWriterIOException
protected void writeTail(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException
AbstractResponseWriter
writeTail in class AbstractResponseWriterIOException
protected void writeException(Throwable tr,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException
<message>
<type>error</type>
<code></code>
<msg></msg>
<description></description>
</message>
위와 다른 구조로 오류를 출력하고자 할 경우에는 이 클래스를 상속받아 하위 클래스에서 재정의한다.
writeException in class AbstractResponseWriterIOException
protected void writeMessage(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException
<message>
<type>info</type>
<code></code>
<msg></msg>
<description></description>
</message>
위와 다른 구조로 오류를 출력하고자 할 경우에는 이 클래스를 상속받아 하위 클래스에서 재정의한다.
writeMessage in class AbstractResponseWriterIOException
protected void writeBody(ValueObjectAssembler voa,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException
AbstractResponseWriter
writeBody in class AbstractResponseWriterIOExceptionprotected String getForwardPath()
AbstractResponseWriter
getForwardPath in class AbstractResponseWriter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||