本文整理了Java中org.restlet.data.Response.setChallengeRequest
方法的一些代码示例,展示了Response.setChallengeRequest
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.setChallengeRequest
方法的具体详情如下:
包路径:org.restlet.data.Response
类名称:Response
方法名:setChallengeRequest
[英]Sets the authentication request sent by an origin server to a client.
[中]设置源服务器向客户端发送的身份验证请求。
代码示例来源:origin: org.restlet/org.restlet
/**
* Sets the authentication request sent by an origin server to a client.
*
* @param request
* The authentication request sent by an origin server to a
* client.
*/
@Override
public void setChallengeRequest(ChallengeRequest request) {
getWrappedResponse().setChallengeRequest(request);
}
代码示例来源:origin: org.sonatype.nexus.plugins/nexus-migration-plugin-artifactory-bridge
response.setChallengeRequest( new ChallengeRequest( ChallengeScheme.HTTP_BASIC,
"Sonatype Nexus Repository Manager" ) );
代码示例来源:origin: org.sonatype.nexus.plugins/nexus-migration-plugin-artifactory-bridge
response.setChallengeRequest( new ChallengeRequest( ChallengeScheme.HTTP_BASIC,
"Sonatype Nexus Repository Manager" ) );
内容来源于网络,如有侵权,请联系作者删除!