T
- 처리 결과 응답 클래스.public abstract class BaseResponseHandler<T> extends java.lang.Object implements HttpResponseHanlder<T>
HTTP 응답을 InputStream으로 받아 처리하는 추상 Hander 클래스.
이를 상속 받는 클래스에서는 InputStream의 인코딩을 지정한 메쏘드(handle(InputStream, String)
을
구현해야 한다.
DEF_ENCODING
Constructor and Description |
---|
BaseResponseHandler() |
Modifier and Type | Method and Description |
---|---|
T |
handle(java.io.InputStream is) |
abstract T |
handle(java.io.InputStream is,
java.lang.String encoding) |
public T handle(java.io.InputStream is) throws java.io.IOException
handle
in interface HttpResponseHanlder<T>
java.io.IOException
public abstract T handle(java.io.InputStream is, java.lang.String encoding) throws java.io.IOException
handle
in interface HttpResponseHanlder<T>
java.io.IOException