Class HttpUtil
java.lang.Object
org.apache.hadoop.yarn.service.utils.HttpUtil
Http connection utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic javax.ws.rs.client.Invocation.Builderstatic StringgenerateToken(String server) Generate SPNEGO challenge request token.
-
Constructor Details
-
HttpUtil
protected HttpUtil()
-
-
Method Details
-
generateToken
Generate SPNEGO challenge request token.- Parameters:
server- - hostname to contact- Throws:
IOExceptionInterruptedException
-
connect
public static javax.ws.rs.client.Invocation.Builder connect(String url) throws URISyntaxException, IOException, InterruptedException
-