Class URLConnectionEngine
java.lang.Object
org.jboss.resteasy.client.jaxrs.engines.URLConnectionEngine
- All Implemented Interfaces:
ClientHttpEngine
- Version:
- $Revision: 1 $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidcommitHeaders(ClientInvocation request, HttpURLConnection connection) Add headers to HttpURLConnection from ClientInvocation.protected HttpURLConnectioncreateConnection(ClientInvocation request) Create HttpUrlConnection from ClientInvorcation and set request methodprotected voidexecuteRequest(ClientInvocation request, HttpURLConnection connection) Execute request using HttpURLConnection with body from invocation if needed.getHeaders(HttpURLConnection connection) Create map with response headers.{inheritDoc}{inheritDoc}invoke(ClientInvocation request) voidsetHostnameVerifier(HostnameVerifier hostnameVerifier) voidsetSslContext(SSLContext sslContext)
-
Field Details
-
sslContext
-
hostnameVerifier
-
-
Constructor Details
-
URLConnectionEngine
public URLConnectionEngine()
-
-
Method Details
-
invoke
- Specified by:
invokein interfaceClientHttpEngine
-
getHeaders
Create map with response headers.- Parameters:
connection- - HttpURLConnection- Returns:
- map key - list of values
-
close
public void close()- Specified by:
closein interfaceClientHttpEngine
-
createConnection
Create HttpUrlConnection from ClientInvorcation and set request method- Parameters:
request- ClientInvocation- Returns:
- HttpURLConnection with method invalid input: '&' url already set
- Throws:
IOException- if url or io exceptions
-
executeRequest
Execute request using HttpURLConnection with body from invocation if needed.- Parameters:
request- ClientInvocationconnection- HttpURLConnection
-
commitHeaders
Add headers to HttpURLConnection from ClientInvocation. Should be executed before writing body.- Parameters:
request- ClientInvocationconnection- HttpURLConnection
-
getSslContext
{inheritDoc}- Specified by:
getSslContextin interfaceClientHttpEngine- Returns:
-
getHostnameVerifier
{inheritDoc}- Specified by:
getHostnameVerifierin interfaceClientHttpEngine- Returns:
-
setSslContext
-
setHostnameVerifier
-