public interface E2ETraceRequest
Modifier and Type | Interface and Description |
---|---|
static class |
E2ETraceRequest.RequestStatus
Status of the Request.
|
Modifier and Type | Method and Description |
---|---|
void |
endRequest()
Ends the request.
|
java.lang.String |
getCorrelationIDHttpHeader()
Returns the X-CorrelationID header.
|
java.lang.String |
getPassportHttpHeader()
Retrieves the SAP passport header.
|
E2ETraceRequest.RequestStatus |
getStatus()
Returns the status of the request.
|
TraceInfo |
getTraceInfo()
Returns the trace info object.
|
java.lang.String |
getTransactionID()
Returns the transaction ID.
|
void |
markReceived()
Should be called as soon as data was completely received.
|
void |
markReceiving()
Should be called upon receiving first data bytes.
|
void |
markSending()
Should be called before data is sent.
|
void |
markSent()
Should be called as soon as the data was sent.
|
void |
setByteCountReceived(long count)
Sets the size of received data in bytes.
|
void |
setByteCountSent(long count)
Sets the size of sent data in bytes.
|
void |
setDuration(long duration)
Sets the duration.
|
void |
setRequestHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
Sets the request headers as key value pairs.
|
void |
setRequestHeaders(java.lang.String headers)
Sets the request headers.
|
void |
setRequestLine(java.lang.String requestLine)
Sets the request line.
|
void |
setResponseHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
Sets the response headers as key value pairs.
|
void |
setResponseHeaders(java.lang.String headers)
Sets the response headers.
|
void |
setReturnCode(java.lang.String returnCode)
Sets the return code.
|
void endRequest()
TraceInfo getTraceInfo()
java.lang.String getPassportHttpHeader()
java.lang.String getCorrelationIDHttpHeader()
java.lang.String getTransactionID()
void markSending()
This method does nothing in case this request and/or its enclosing step/transaction has been ended.
void markSent()
This method does nothing in case this request and/or its enclosing step/transaction has been ended.
void markReceiving()
This method does nothing in case this request and/or its enclosing step/transaction has been ended.
void markReceived()
This method does nothing in case this request and/or its enclosing step/transaction has been ended.
void setByteCountSent(long count)
This method does nothing in case this request and/or its enclosing step/transaction has been ended.
count
- the byte countvoid setByteCountReceived(long count)
This method does nothing in case this request and/or its enclosing step/transaction has been ended.
count
- void setRequestHeaders(java.lang.String headers)
This method does nothing in case this request and/or its enclosing step/transaction has been ended or in case the arugment is null.
TODO To be discussed w/ arch.headers
- the header string, can be nullvoid setRequestHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
This method does nothing in case this request and/or its enclosing step/transaction has been ended or in case the argument is null.
headers
- the header map, can be nullvoid setResponseHeaders(java.lang.String headers)
This method does nothing in case this request and/or its enclosing step/transaction has been ended or in case the arugment is null.
TODO To be discussed w/ arch.headers
- the header string, can be nullvoid setResponseHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
This method does nothing in case this request and/or its enclosing step/transaction has been ended or in case the argument is null.
headers
- the header map, can be nullvoid setRequestLine(java.lang.String requestLine)
This method does nothing in case this request and/or its enclosing step/transaction has been ended or in case the argument is null.
requestLine
- the request line, can be nullvoid setReturnCode(java.lang.String returnCode)
This method does nothing in case this request and/or its enclosing step/transaction has been ended or in case the argument is null.
returnCode
- the return code, can be nullvoid setDuration(long duration)
This method does nothing in case this request and/or its enclosing step/transaction has been ended.
duration
- E2ETraceRequest.RequestStatus getStatus()