|
Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC) 11g Release 1 (11.1) E17274-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.stellent.ridc.protocol.intradoc.HdaProtocol<TConnection>
public abstract class HdaProtocol<TConnection extends Connection>
Field Summary | |
---|---|
static String |
BEGIN_HDA |
static String |
BEGIN_HDA_NO_HEADER |
static String |
CONTENT_LENGTH |
static String |
CONTENT_LENGTH_HEADER |
static String |
CONTENT_TYPE_HEADER |
static String |
END_HDA |
static String |
END_HEADER_LINE |
static String |
END_HEADERS |
static String |
END_MESSAGE |
static String |
END_SERVER_HEADERS |
static String |
HEADER_ENCODING_HEADER |
static String |
HEADER_LINE |
static String |
HTTP_HOST |
static String |
HTTP_HOST_HEADER |
static String |
IDC_FILE |
static String |
REMOTE_USER_HEADER |
static String |
REQUEST_METHOD_HEADER |
static int |
RETRY_COUNT |
static String |
USE_STRICT_GET |
static String |
USER_AGENT_HEADER |
Fields inherited from interface oracle.stellent.ridc.protocol.Protocol |
---|
IDC_HEADER_PREFIX |
Constructor Summary | |
---|---|
HdaProtocol(DataFactory dataFactory, ServiceRequest<TConnection> serviceRequest) Constructor |
Method Summary | |
---|---|
protected Map<String,String> |
getAdditionalHeaders(DataBinder binder) Returns a properties object with headers contained in binder. |
TConnection |
getConnection() |
DataFactory |
getDataFactory() |
String |
getEncoding() |
IdcFilterManager |
getFilterManager() |
String |
getHeaderCharset() |
protected Map<String,String> |
getHeaders() The headers |
protected String |
getHeadersAsString(Map<String,String> headerMap) Get all the headers in a hda-compliant (EOL seperated) string |
protected String |
getHeaderString(boolean isMultiPart, long contentLength, Map<String,String> additionalHeaders) |
OutputStream |
getRequestStream() |
InputStream |
getResponseStream() |
ServiceRequest<TConnection> |
getServiceRequest() |
protected InputStream |
readHdaStream() Creates a stream to the next HDA message. |
protected boolean |
readHeaders() Read the headers (Http format) from the content server |
ServiceResponse |
readResponse() Reads the next message, if a message is not completely received within the timeout specified an exception is thrown. |
void |
setFilterManager(IdcFilterManager filterManager) |
void |
setHeaderCharset(String headerCharset) |
protected void |
writeMultipartRequest(Map<String,String> additionalHeaders) Special handling for the multipart message |
void |
writeRequest() Sends the specified message to the Content Server. |
protected void |
writeStandardRequest(Map<String,String> additionalHeaders) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.stellent.ridc.protocol.Protocol |
---|
logout |
Field Detail |
---|
public static final String HEADER_ENCODING_HEADER
public static final String CONTENT_TYPE_HEADER
public static final String USER_AGENT_HEADER
public static final String HTTP_HOST_HEADER
public static final String CONTENT_LENGTH_HEADER
public static final String REMOTE_USER_HEADER
public static final String REQUEST_METHOD_HEADER
public static final String USE_STRICT_GET
public static final String END_HEADERS
public static final String HEADER_LINE
public static final String END_SERVER_HEADERS
public static final String END_MESSAGE
public static final String END_HEADER_LINE
public static final String BEGIN_HDA
public static final String BEGIN_HDA_NO_HEADER
public static final String END_HDA
public static final String HTTP_HOST
public static final int RETRY_COUNT
public static final String CONTENT_LENGTH
public static final String IDC_FILE
Constructor Detail |
---|
public HdaProtocol(DataFactory dataFactory, ServiceRequest<TConnection> serviceRequest)
dataFactory
- the data factoryserviceRequest
- the service requestMethod Detail |
---|
public DataFactory getDataFactory()
public ServiceRequest<TConnection> getServiceRequest()
public TConnection getConnection()
public InputStream getResponseStream() throws IOException
IOException
public OutputStream getRequestStream() throws IOException
IOException
public String getHeaderCharset()
public void setHeaderCharset(String headerCharset)
public String getEncoding()
public void setFilterManager(IdcFilterManager filterManager)
setFilterManager
in interface Protocol
public IdcFilterManager getFilterManager()
getFilterManager
in interface Protocol
public void writeRequest() throws ProtocolException
writeRequest
in interface Protocol
ProtocolException
- If an error occurs during the send.public ServiceResponse readResponse() throws ProtocolException
readResponse
in interface Protocol
ProtocolException
- If an error occurs or timeout is reached.protected void writeStandardRequest(Map<String,String> additionalHeaders) throws IOException
additionalHeaders
-IOException
protected void writeMultipartRequest(Map<String,String> additionalHeaders) throws IOException
additionalHeaders
- additional headers to sendIOException
protected Map<String,String> getAdditionalHeaders(DataBinder binder)
binder
- The binder to look for additional headers.protected String getHeaderString(boolean isMultiPart, long contentLength, Map<String,String> additionalHeaders)
protected String getHeadersAsString(Map<String,String> headerMap)
headerMap
- a header mapprotected boolean readHeaders() throws IOException
IOException
protected InputStream readHdaStream() throws IOException
IOException
- If an error occurs or timeout is reached.protected Map<String,String> getHeaders()
|
Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC) 11g Release 1 (11.1) E17274-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |