Class W3CHttpResponseCodec
- java.lang.Object
-
- org.openqa.selenium.remote.codec.AbstractHttpResponseCodec
-
- org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec
-
- All Implemented Interfaces:
ResponseCodec<org.openqa.selenium.remote.http.HttpResponse>
public class W3CHttpResponseCodec extends AbstractHttpResponseCodec
A response codec that adheres to the W3C WebDriver wire protocol.- See Also:
- W3C WebDriver spec
-
-
Constructor Summary
Constructors Constructor Description W3CHttpResponseCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Responsedecode(org.openqa.selenium.remote.http.HttpResponse encodedResponse)Decodes a response.protected java.lang.ObjectgetValueToEncode(Response response)protected ResponsereconstructValue(Response response)-
Methods inherited from class org.openqa.selenium.remote.codec.AbstractHttpResponseCodec
encode
-
-
-
-
Method Detail
-
decode
public Response decode(org.openqa.selenium.remote.http.HttpResponse encodedResponse)
Description copied from interface:ResponseCodecDecodes a response.- Specified by:
decodein interfaceResponseCodec<org.openqa.selenium.remote.http.HttpResponse>- Overrides:
decodein classAbstractHttpResponseCodec- Parameters:
encodedResponse- the response to decode.- Returns:
- the decoded response.
-
getValueToEncode
protected java.lang.Object getValueToEncode(Response response)
- Specified by:
getValueToEncodein classAbstractHttpResponseCodec
-
reconstructValue
protected Response reconstructValue(Response response)
- Specified by:
reconstructValuein classAbstractHttpResponseCodec
-
-