com.tobesoft.xplatform.tx
Class HttpPlatformRequest

java.lang.Object
  extended bycom.tobesoft.xplatform.tx.PlatformTransaction
      extended bycom.tobesoft.xplatform.tx.PlatformRequest
          extended bycom.tobesoft.xplatform.tx.HttpPlatformRequest

public class HttpPlatformRequest
extends PlatformRequest

HTTP 요청으로부터 데이터(PlatformData)를 수신받는다.

Author:
Choi, Jongkwan

Constructor Summary
HttpPlatformRequest(javax.servlet.http.HttpServletRequest httpReq)
          HttpServletRequest을 가지는 생성자이다.
HttpPlatformRequest(javax.servlet.http.HttpServletRequest httpReq, java.lang.String contentType)
          HttpServletRequest와 송수신 형식(contentType)을 가지는 생성자이다.
HttpPlatformRequest(javax.servlet.http.HttpServletRequest httpReq, java.lang.String contentType, java.lang.String charset)
          HttpServletRequest, 송수신 형식(contentType)과 문자셋(charset)을 가지는 생성자이다.
HttpPlatformRequest(java.io.InputStream in)
          InputStream을 가지는 생성자이다.
HttpPlatformRequest(java.io.InputStream in, java.lang.String contentType)
          InputStream과 송수신 형식(contentType)을 가지는 생성자이다.
HttpPlatformRequest(java.io.InputStream in, java.lang.String contentType, java.lang.String charset)
          InputStream, 송수신 형식(contentType)과 문자셋(charset)을 가지는 생성자이다.
HttpPlatformRequest(java.io.Reader reader)
          Reader를 가지는 생성자이다.
HttpPlatformRequest(java.io.Reader reader, java.lang.String contentType)
          Reader와 송수신 형식(contentType)을 가지는 생성자이다.
HttpPlatformRequest(java.io.Reader reader, java.lang.String contentType, java.lang.String charset)
          Reader, 송수신 형식(contentType)과 문자셋(charset)을 가지는 생성자이다.
 
Method Summary
 java.lang.Object getProperty(java.lang.String key)
          속성값을 반환한다.
 void receiveData()
          HTTP 요청으로부터 데이터(PlatformData)를 수신받는다.
 void setProperty(java.lang.String key, java.lang.Object value)
          속성값을 설정한다.
 
Methods inherited from class com.tobesoft.xplatform.tx.PlatformRequest
addProtocolType, clearProtocolTypes, containsProtocolType, getCharset, getContentType, getCurrentCharset, getCurrentContentType, getData, getDataTypeChanger, getDefaultCharset, getDefaultContentType, getProtocolType, getProtocolTypeCount, getStreamLogDir, getStreamLogMaxSize, getStreamLogPrefix, getStreamLogSuffix, isCurrentVerbose, isStreamLogEnabled, isVerbose, removeProtocolType, removeProtocolType, setCharset, setContentType, setData, setDataTypeChanger, setStreamLogDir, setStreamLogEnabled, setStreamLogMaxSize, setStreamLogPrefix, setStreamLogSuffix, setVerbose, storeStreamLog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpPlatformRequest

public HttpPlatformRequest(java.io.InputStream in)
InputStream을 가지는 생성자이다.

Parameters:
in - InputStream

HttpPlatformRequest

public HttpPlatformRequest(java.io.InputStream in,
                           java.lang.String contentType)
InputStream과 송수신 형식(contentType)을 가지는 생성자이다.

Parameters:
in - InputStream
contentType - 송수신 형식
See Also:
PlatformType.CONTENT_TYPE_XML, PlatformType.CONTENT_TYPE_BINARY

HttpPlatformRequest

public HttpPlatformRequest(java.io.InputStream in,
                           java.lang.String contentType,
                           java.lang.String charset)
InputStream, 송수신 형식(contentType)과 문자셋(charset)을 가지는 생성자이다.

Parameters:
in - InputStream
contentType - 송수신 형식
charset - 문자셋
See Also:
PlatformType.CONTENT_TYPE_XML, PlatformType.CONTENT_TYPE_BINARY

HttpPlatformRequest

public HttpPlatformRequest(java.io.Reader reader)
Reader를 가지는 생성자이다.

Parameters:
reader - Reader

HttpPlatformRequest

public HttpPlatformRequest(java.io.Reader reader,
                           java.lang.String contentType)
Reader와 송수신 형식(contentType)을 가지는 생성자이다.

Parameters:
reader - Reader
contentType - 송수신 형식
See Also:
PlatformType.CONTENT_TYPE_XML, PlatformType.CONTENT_TYPE_BINARY

HttpPlatformRequest

public HttpPlatformRequest(java.io.Reader reader,
                           java.lang.String contentType,
                           java.lang.String charset)
Reader, 송수신 형식(contentType)과 문자셋(charset)을 가지는 생성자이다.

Parameters:
reader - Reader
contentType - 송수신 형식
charset - 문자셋
See Also:
PlatformType.CONTENT_TYPE_XML, PlatformType.CONTENT_TYPE_BINARY

HttpPlatformRequest

public HttpPlatformRequest(javax.servlet.http.HttpServletRequest httpReq)
HttpServletRequest을 가지는 생성자이다.

Parameters:
httpReq - HttpServletRequest

HttpPlatformRequest

public HttpPlatformRequest(javax.servlet.http.HttpServletRequest httpReq,
                           java.lang.String contentType)
HttpServletRequest와 송수신 형식(contentType)을 가지는 생성자이다.

Parameters:
httpReq - HttpServletRequest
contentType - 송수신 형식
See Also:
PlatformType.CONTENT_TYPE_XML, PlatformType.CONTENT_TYPE_BINARY

HttpPlatformRequest

public HttpPlatformRequest(javax.servlet.http.HttpServletRequest httpReq,
                           java.lang.String contentType,
                           java.lang.String charset)
HttpServletRequest, 송수신 형식(contentType)과 문자셋(charset)을 가지는 생성자이다.

Parameters:
httpReq - HttpServletRequest
contentType - 송수신 형식
charset - 문자셋
See Also:
PlatformType.CONTENT_TYPE_XML, PlatformType.CONTENT_TYPE_BINARY
Method Detail

getProperty

public java.lang.Object getProperty(java.lang.String key)
속성값을 반환한다. 설정가능한 속성값은 다음과 같다.
속성명 데이터 형식 유효한 값 기본값 설 명
http.getparameter.register String true 또는 false false 데이터 수신시 HTTP GET 데이터의 등록 여부
http.getparameter.asvariable String true 또는 false false HTTP GET 데이터 등록시 Variable 형식으로의 변환 여부, false인 경우 HTTP GET 데이터는 DataSet 형식으로 변환

Overrides:
getProperty in class PlatformRequest
Parameters:
key - 속성명
Returns:
속성값
See Also:
setProperty(String, Object)

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object value)
속성값을 설정한다.

Overrides:
setProperty in class PlatformRequest
Parameters:
key - 속성명
value - 속성값
See Also:
getProperty(String)

receiveData

public void receiveData()
                 throws PlatformException
HTTP 요청으로부터 데이터(PlatformData)를 수신받는다. 송수신 형식(contentType)이 설정되지 않은 경우 HTTP 헤더의 ContentType 값으로부터 판단하며, 다음과 같이 적용된다.
HTTP 헤더의 ContentType 적용되는 송수신 형식(contentType)
text/xml PlatformType.CONTENT_TYPE_XML
application/octet-stream PlatformType.CONTENT_TYPE_BINARY
그 외 PlatformType.DEFAULT_CONTENT_TYPE

Overrides:
receiveData in class PlatformRequest
Throws:
PlatformException


Copyright © 2000-2011 TOBESOFT Co., Ltd.