Package org.openqa.selenium.remote
Interface ResponseCodec<T>
- Type Parameters:
 T- The type of an encoded response.
- All Known Implementing Classes:
 AbstractHttpResponseCodec,W3CHttpResponseCodec
public interface ResponseCodec<T>
Converts 
Response objects to and from another representation.- 
Method Summary
 
- 
Method Details
- 
encode
Encodes a response.- Parameters:
 factory- creates a new instance ofT.response- the response to encode.- Returns:
 - the encoded response.
 - Throws:
 IllegalArgumentException- If the object cannot be encoded.
 - 
decode
Decodes a response.- Parameters:
 encodedResponse- the response to decode.- Returns:
 - the decoded response.
 - Throws:
 IllegalArgumentException- If the object cannot be decoded.
 
 -