|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.stellent.ridc.protocol.http.IdcHttpProtocol
public class IdcHttpProtocol
Field Summary | |
---|---|
static java.lang.String |
USER_AGENT
|
Constructor Summary | |
---|---|
IdcHttpProtocol(ServiceRequest<IdcHttpClientConnection> serviceRequest,
DataFactory dataFactory,
IdcHttpClientConfig config)
|
Method Summary | |
---|---|
protected void |
addRequestHeaders(DataBinder binder,
org.apache.commons.httpclient.HttpMethod httpMethod)
Set the request headers into the HTTP method. |
protected void |
addStringToBinder(java.lang.String searchString,
java.lang.String htmlBody,
DataBinder binder)
|
protected int |
executeBinderMethod(ServiceRequest serviceRequest,
java.util.List<org.apache.commons.httpclient.NameValuePair> parameters)
Execute an HTTP method against the content server that POSTs a binder in HDA format |
protected int |
executeStreamMethod(ServiceRequest serviceRequest,
java.util.List<org.apache.commons.httpclient.NameValuePair> parameters)
Execute a multipart POST method against the content server that uploads the given files. |
IdcHttpClientConfig |
getClientConfig()
|
IdcHttpClientConnection |
getConnection()
|
DataFactory |
getDataFactory()
|
protected java.util.List<org.apache.commons.httpclient.NameValuePair> |
getDefaultParameters(ServiceRequest serviceRequest)
Create a list of the default NameValuePair parameters |
java.lang.String |
getEncoding()
|
org.apache.commons.httpclient.HttpClient |
getHttpClient()
|
java.io.InputStream |
getInputStream()
|
ServiceRequest<IdcHttpClientConnection> |
getServiceRequest()
|
ServiceResponse |
readResponse()
Reads the next message, if a message is not completely received within the timeout specified an exception is thrown. |
void |
writeRequest()
Write the request to the Content Server |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String USER_AGENT
Constructor Detail |
---|
public IdcHttpProtocol(ServiceRequest<IdcHttpClientConnection> serviceRequest, DataFactory dataFactory, IdcHttpClientConfig config)
Method Detail |
---|
public DataFactory getDataFactory()
public ServiceRequest<IdcHttpClientConnection> getServiceRequest()
public java.lang.String getEncoding()
public IdcHttpClientConfig getClientConfig()
public IdcHttpClientConnection getConnection()
public org.apache.commons.httpclient.HttpClient getHttpClient()
public java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
public void writeRequest() throws ProtocolException
writeRequest
in interface Protocol
ProtocolException
public ServiceResponse readResponse() throws ProtocolException
readResponse
in interface Protocol
ProtocolException
protected void addStringToBinder(java.lang.String searchString, java.lang.String htmlBody, DataBinder binder)
protected java.util.List<org.apache.commons.httpclient.NameValuePair> getDefaultParameters(ServiceRequest serviceRequest)
NameValuePair
parameters
serviceRequest
- the request
protected int executeStreamMethod(ServiceRequest serviceRequest, java.util.List<org.apache.commons.httpclient.NameValuePair> parameters) throws java.io.IOException
serviceRequest
- the requestparameters
- the default parameters
java.io.IOException
protected int executeBinderMethod(ServiceRequest serviceRequest, java.util.List<org.apache.commons.httpclient.NameValuePair> parameters) throws java.io.IOException
serviceRequest
- the service requestparameters
- the default parameters
java.io.IOException
protected void addRequestHeaders(DataBinder binder, org.apache.commons.httpclient.HttpMethod httpMethod)
binder
- the binderhttpMethod
- the http method to set the parameters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |