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 TypeMethodDescriptionvoid
close()
protected void
commitHeaders
(ClientInvocation request, HttpURLConnection connection) Add headers to HttpURLConnection from ClientInvocation.protected HttpURLConnection
createConnection
(ClientInvocation request) Create HttpUrlConnection from ClientInvorcation and set request methodprotected void
executeRequest
(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) void
setHostnameVerifier
(HostnameVerifier hostnameVerifier) void
setSslContext
(SSLContext sslContext)
-
Field Details
-
sslContext
-
hostnameVerifier
-
-
Constructor Details
-
URLConnectionEngine
public URLConnectionEngine()
-
-
Method Details
-
invoke
- Specified by:
invoke
in interfaceClientHttpEngine
-
getHeaders
Create map with response headers.- Parameters:
connection
- - HttpURLConnection- Returns:
- map key - list of values
-
close
public void close()- Specified by:
close
in interfaceClientHttpEngine
-
createConnection
Create HttpUrlConnection from ClientInvorcation and set request method- Parameters:
request
- ClientInvocation- Returns:
- HttpURLConnection with method & 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:
getSslContext
in interfaceClientHttpEngine
- Returns:
-
getHostnameVerifier
{inheritDoc}- Specified by:
getHostnameVerifier
in interfaceClientHttpEngine
- Returns:
-
setSslContext
-
setHostnameVerifier
-