Package org.apache.cxf.transport.http
Class Address
- java.lang.Object
-
- org.apache.cxf.transport.http.Address
-
public final class Address extends Object
A convenient class for storing URI and URL representation of an address and avoid useless conversions. A proxy for the current address is also lazily resolved and stored; most of the times, that proxy can be used to prevent the HttpURLConnection from computing the proxy when the connection is opened. The class is thread-safe.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Proxy
getDefaultProxy()
String
getString()
URI
getURI()
URL
getURL()
-
-
-
Constructor Detail
-
Address
public Address(String str) throws URISyntaxException
- Throws:
URISyntaxException
-
-
Method Detail
-
getURL
public URL getURL() throws MalformedURLException
- Throws:
MalformedURLException
-
getURI
public URI getURI()
-
getString
public String getString()
-
getDefaultProxy
public Proxy getDefaultProxy()
-
-