Skip navigation links
A C D E F G I P S T U 

A

adapt(ProxyConfig) - Static method in class com.twitter.common.net.ProxyAuthorizer
 
addProtocol(String) - Static method in class com.twitter.common.net.UrlHelper
Checks whether a URL specifies its protocol, prepending http if it does not.
authorize(HttpURLConnection) - Method in class com.twitter.common.net.ProxyAuthorizer
 

C

com.twitter.common.net - package com.twitter.common.net
 
contains(String) - Method in interface com.twitter.common.net.Environment
Checks if a given hostname is a valid hostname for a host in this network environment; does not guarantee that the host exists in this network environment.
convertToSockets(Iterable<String>) - Static method in class com.twitter.common.net.InetSocketAddressHelper
Converts backend definitions (in host:port form) a set of socket addresses.

D

dcName() - Method in interface com.twitter.common.net.Environment
Returns the name of this network environment's datacenter.

E

Environment - Interface in com.twitter.common.net
Represents a network environment at the granularity of a datacenter.

F

fullyQualify(String) - Method in interface com.twitter.common.net.Environment
Creates a fully qualified hostname for a given unqualified hostname in the network environment's datacenter.

G

getDomain(String) - Static method in class com.twitter.common.net.UrlHelper
Gets the domain from url.
getDomainChecked(String) - Static method in class com.twitter.common.net.UrlHelper
Gets the domain from uri, and throws an exception if it's not a valid uri.
getDomainLevels(String) - Static method in class com.twitter.common.net.UrlHelper
Gets the domain levels for a host.
getLocalAddress(int) - Static method in class com.twitter.common.net.InetSocketAddressHelper
 
getPath(String) - Static method in class com.twitter.common.net.UrlHelper
Gets the path from url.
getProxyAddress() - Method in interface com.twitter.common.net.ProxyConfig
 
getProxyPassword() - Method in interface com.twitter.common.net.ProxyConfig
 
getProxyUser() - Method in interface com.twitter.common.net.ProxyConfig
 
getReversedDomainParts(String, int) - Static method in class com.twitter.common.net.UrlTokenizerUtil
Given an url host, tokenizes the host parts by dot, reverses them, and pads (with "") or truncates up to numParts pieces.

I

INET_TO_STR - Static variable in class com.twitter.common.net.InetSocketAddressHelper
 
InetSocketAddressHelper - Class in com.twitter.common.net
A utility that can parse [host]:[port] pairs or :[port] designators into instances of InetSocketAddress.
INT_TO_INET - Static variable in class com.twitter.common.net.InetSocketAddressHelper
A function that uses getLocalAddress(int) to map a local port number to an InetSocketAddress.
isTLD(String, boolean) - Static method in class com.twitter.common.net.UrlTokenizerUtil
 

P

parse(String) - Static method in class com.twitter.common.net.InetSocketAddressHelper
Attempts to parse an endpoint spec into an InetSocketAddress.
ProxyAuthorizer - Class in com.twitter.common.net
Authorizes http connection for use over the proxy it is built with
ProxyConfig - Interface in com.twitter.common.net
Proxy configuration parameters: proxy address, username, and password.

S

STR_TO_INET - Static variable in class com.twitter.common.net.InetSocketAddressHelper
A function that uses parse(String) to map an endpoint spec to an InetSocketAddress.
stripUrlParameters(String) - Static method in class com.twitter.common.net.UrlHelper
Strips URL parameters from a url.
stripUrlParameters(URL) - Static method in class com.twitter.common.net.UrlHelper
Convenience method that calls #stripUrlParameters(String) for a URL.

T

toString(InetSocketAddress) - Static method in class com.twitter.common.net.InetSocketAddressHelper
Attempts to return a usable String given an InetSocketAddress.

U

UrlHelper - Class in com.twitter.common.net
 
UrlHelper() - Constructor for class com.twitter.common.net.UrlHelper
 
UrlTokenizerUtil - Class in com.twitter.common.net
Utility methods to help with url tokenization.
UrlTokenizerUtil() - Constructor for class com.twitter.common.net.UrlTokenizerUtil
 
A C D E F G I P S T U 
Skip navigation links