本文整理了Java中org.apache.commons.httpclient.auth.AuthState.getAuthScheme()
方法的一些代码示例,展示了AuthState.getAuthScheme()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AuthState.getAuthScheme()
方法的具体详情如下:
包路径:org.apache.commons.httpclient.auth.AuthState
类名称:AuthState
方法名:getAuthScheme
[英]Returns the AuthScheme.
[中]返回AuthScheme。
代码示例来源:origin: commons-httpclient/commons-httpclient
if (state.isPreemptive() || state.getAuthScheme() == null) {
AuthScheme authscheme = state.getAuthScheme();
String id = authscheme.getSchemeName();
if (LOG.isDebugEnabled()) {
代码示例来源:origin: commons-httpclient/commons-httpclient
);
method.getProxyAuthState().setAuthScheme(
this.connectMethod.getProxyAuthState().getAuthScheme());
this.connectMethod = null;
} else {
代码示例来源:origin: commons-httpclient/commons-httpclient
AuthScheme authscheme = authstate.getAuthScheme();
if (authscheme == null) {
return;
代码示例来源:origin: commons-httpclient/commons-httpclient
AuthScheme authscheme = authstate.getAuthScheme();
if (authscheme == null) {
return;
代码示例来源:origin: org.eclipse.mylyn.commons/xmlrpc
@SuppressWarnings("null")
public void processResponse(HttpMethod method) throws XmlRpcException {
if (isContentTypeCheckingEnabled()) {
Header contentTypeHeader = method.getResponseHeader("Content-Type"); //$NON-NLS-1$
if (contentTypeHeader == null || !DEFAULT_CONTENT_TYPE.equals(contentTypeHeader.getValue())) {
throw new XmlRpcIllegalContentTypeException(
NLS.bind(
"The server returned an unexpected content type: ''{0}''", contentTypeHeader.getValue()), contentTypeHeader.getValue()); //$NON-NLS-1$
}
}
AuthScheme authScheme = method.getHostAuthState().getAuthScheme();
if (authScheme instanceof DigestScheme) {
digestScheme = (DigestScheme) authScheme;
if (DEBUG_AUTH) {
System.err.println(location.getUrl() + ": Received digest scheme"); //$NON-NLS-1$
}
}
}
});
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
if (state.isPreemptive() || state.getAuthScheme() == null) {
AuthScheme authscheme = state.getAuthScheme();
String id = authscheme.getSchemeName();
if (LOG.isDebugEnabled()) {
代码示例来源:origin: org.apache.commons/httpclient
if (state.isPreemptive() || state.getAuthScheme() == null) {
AuthScheme authscheme = state.getAuthScheme();
String id = authscheme.getSchemeName();
if (LOG.isDebugEnabled()) {
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
if (state.isPreemptive() || state.getAuthScheme() == null) {
AuthScheme authscheme = state.getAuthScheme();
String id = authscheme.getSchemeName();
if (LOG.isDebugEnabled()) {
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
);
method.getProxyAuthState().setAuthScheme(
this.connectMethod.getProxyAuthState().getAuthScheme());
this.connectMethod = null;
} else {
代码示例来源:origin: org.apache.commons/httpclient
);
method.getProxyAuthState().setAuthScheme(
this.connectMethod.getProxyAuthState().getAuthScheme());
this.connectMethod = null;
} else {
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
);
method.getProxyAuthState().setAuthScheme(
this.connectMethod.getProxyAuthState().getAuthScheme());
this.connectMethod = null;
} else {
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
);
method.getProxyAuthState().setAuthScheme(
this.connectMethod.getProxyAuthState().getAuthScheme());
this.connectMethod = null;
} else {
代码示例来源:origin: org.eclipse.mylyn.commons/xmlrpc
@Override
protected InputStream getInputStream() throws XmlRpcException {
int responseCode = method.getStatusCode();
if (responseCode != HttpURLConnection.HTTP_OK) {
XmlRpcHttpException e = new XmlRpcHttpException(responseCode);
if (responseCode == HttpStatus.SC_UNAUTHORIZED) {
e.setAuthScheme(method.getHostAuthState().getAuthScheme());
}
throw e;
}
try {
return method.getResponseBodyAsStream();
} catch (HttpException e) {
throw new XmlRpcClientException("Error in HTTP transport: " + e.getMessage(), e); //$NON-NLS-1$
} catch (IOException e) {
throw new XmlRpcClientException("I/O error in server communication: " + e.getMessage(), e); //$NON-NLS-1$
}
}
代码示例来源:origin: org.apache.commons/httpclient
AuthScheme authscheme = authstate.getAuthScheme();
if (authscheme == null) {
return;
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
AuthScheme authscheme = authstate.getAuthScheme();
if (authscheme == null) {
return;
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
AuthScheme authscheme = authstate.getAuthScheme();
if (authscheme == null) {
return;
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
AuthScheme authscheme = authstate.getAuthScheme();
if (authscheme == null) {
return;
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
AuthScheme authscheme = authstate.getAuthScheme();
if (authscheme == null) {
return;
代码示例来源:origin: org.apache.commons/httpclient
AuthScheme authscheme = authstate.getAuthScheme();
if (authscheme == null) {
return;
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
AuthScheme authscheme = authstate.getAuthScheme();
if (authscheme == null) {
return;
内容来源于网络,如有侵权,请联系作者删除!