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 Response
decode(org.openqa.selenium.remote.http.HttpResponse encodedResponse)
Decodes a response.protected java.lang.Object
getValueToEncode(Response response)
protected Response
reconstructValue(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:ResponseCodec
Decodes a response.- Specified by:
decode
in interfaceResponseCodec<org.openqa.selenium.remote.http.HttpResponse>
- Overrides:
decode
in classAbstractHttpResponseCodec
- Parameters:
encodedResponse
- the response to decode.- Returns:
- the decoded response.
-
getValueToEncode
protected java.lang.Object getValueToEncode(Response response)
- Specified by:
getValueToEncode
in classAbstractHttpResponseCodec
-
reconstructValue
protected Response reconstructValue(Response response)
- Specified by:
reconstructValue
in classAbstractHttpResponseCodec
-
-