kr.co.hit.live.container
Class ServiceWebAction

java.lang.Object
  extended by kr.co.hit.live.web.action.AbstractWebAction
      extended by kr.co.hit.live.container.ServiceWebAction
All Implemented Interfaces:
WebAction
Direct Known Subclasses:
OperationWebAction

public class ServiceWebAction
extends AbstractWebAction

현재 서비스 상태를 조회할 수 있는 기능을 제공하는 WebAction 구현 클래스.

Since:
5.0
Author:
김형도

Field Summary
static String NAME_PARAM
           
 
Fields inherited from class kr.co.hit.live.web.action.AbstractWebAction
context, logger
 
Constructor Summary
ServiceWebAction()
           
 
Method Summary
 WebActionForward execute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          WebActionDispatcher 서블릿이 호출하는 메소드이다.
protected  ValueObjectAssembler getServiceInfo(String svcName)
          주어진 이름의 서비스의 현재 정보를 반환한다.
protected  ValueObject getServiceList()
          현재 등록된 전체 서비스 목록을 반환한다.
protected  WebActionForward showServiceInfo(javax.servlet.http.HttpServletResponse response, String requestURI, String svcName, ValueObject svcVO, ValueObject refVO, ValueObject opVO)
          특정 서비스의 정보를 출력하는 기능을 제공한다.
protected  WebActionForward showServiceList(javax.servlet.http.HttpServletResponse response, String requestURI, ValueObject svcVO)
          서비스 전체 목록을 출력하는 기능을 제공한다.
 
Methods inherited from class kr.co.hit.live.web.action.AbstractWebAction
createForward, getServletContext, getWebApplicationContext, setForward, setPrefix, setSuffix, setWebApplicationContext, showConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME_PARAM

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

ServiceWebAction

public ServiceWebAction()
Method Detail

execute

public WebActionForward execute(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response)
                         throws Exception
Description copied from interface: WebAction
WebActionDispatcher 서블릿이 호출하는 메소드이다. 이 인터페이스를 구현하는 클래스는 이 메소드에서 업무처리를 수행하고 forward할 View의 URL을 WebActionForward로 리턴한다. null을 리턴할 경우에는 forward하지 않는다.

Specified by:
execute in interface WebAction
Specified by:
execute in class AbstractWebAction
Returns:
Throws:
Exception

getServiceList

protected ValueObject getServiceList()
현재 등록된 전체 서비스 목록을 반환한다.

Returns:
  • svcname: 서비스 명
  • infname: 인터페이스 명
  • classname: 구현 클래스명
  • instantiated: 현재 서비스 객체의 생성여부(true/false)

getServiceInfo

protected ValueObjectAssembler getServiceInfo(String svcName)
주어진 이름의 서비스의 현재 정보를 반환한다.

Parameters:
svcName -
Returns:
    service
  • svcname: 서비스 명
  • infname: 인터페이스 명
  • classname: 구현 클래스명
  • instantiated: 현재 서비스 객체의 생성여부(true/false)
    refs
  • ref: 참조하는 서비스 명

showServiceList

protected WebActionForward showServiceList(javax.servlet.http.HttpServletResponse response,
                                           String requestURI,
                                           ValueObject svcVO)
                                    throws IOException
서비스 전체 목록을 출력하는 기능을 제공한다. 출력 모양을 변경하고자 한다면 아래 메소드를 상속받아 재정의한다.

Parameters:
response -
requestURI -
svcVO -
Throws:
IOException

showServiceInfo

protected WebActionForward showServiceInfo(javax.servlet.http.HttpServletResponse response,
                                           String requestURI,
                                           String svcName,
                                           ValueObject svcVO,
                                           ValueObject refVO,
                                           ValueObject opVO)
                                    throws IOException
특정 서비스의 정보를 출력하는 기능을 제공한다. 출력 모양을 변경하고자 한다면 아래 메소드를 상속받아 재정의한다.

Parameters:
response -
requestURI -
svcVO - 서비스 정보를 담은 VO
refVO - 참조하는 서비스 목록을 담은 VO
Throws:
IOException


Copyright © 2014. All Rights Reserved.