|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.hsr.bieridee.test.http.requestprocessors.AcceptRequestProcessor
public class AcceptRequestProcessor
A request processor that takes a content type in the constructor and adds it to the accept header of the request.
Nested Class Summary | |
---|---|
static class |
AcceptRequestProcessor.ContentType
Content type enum. |
Constructor Summary | |
---|---|
AcceptRequestProcessor(AcceptRequestProcessor.ContentType contentType)
Create a new AcceptRequestProcessor instance that adds
the specified ContentType to the accept header of the request. |
Method Summary | |
---|---|
org.apache.http.client.methods.HttpRequestBase |
processRequest(org.apache.http.client.methods.HttpRequestBase request)
Process the request. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AcceptRequestProcessor(AcceptRequestProcessor.ContentType contentType)
AcceptRequestProcessor
instance that adds
the specified ContentType
to the accept header of the request.
contentType
- An instance of AcceptRequestProcessor.ContentType
Method Detail |
---|
public org.apache.http.client.methods.HttpRequestBase processRequest(org.apache.http.client.methods.HttpRequestBase request)
processRequest
in interface IRequestProcessor
request
- HTTP request object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |