Tabnine Logo
Response.getChallengeRequests
Code IndexAdd Tabnine to your IDE (free)

How to use
getChallengeRequests
method
in
org.restlet.Response

Best Java code snippets using org.restlet.Response.getChallengeRequests (Showing top 9 results out of 315)

origin: org.restlet.osgi/org.restlet

/**
 * Sets the list of authentication requests sent by an origin server to a
 * client. Note that when used with HTTP connectors, this property maps to
 * the "WWW-Authenticate" header. This method clears the current list and
 * adds all entries in the parameter list.
 * 
 * @param challengeRequests
 *            A list of authentication requests sent by an origin server to
 *            a client.
 */
public void setChallengeRequests(List<ChallengeRequest> challengeRequests) {
  synchronized (getChallengeRequests()) {
    if (challengeRequests != getChallengeRequests()) {
      getChallengeRequests().clear();
      if (challengeRequests != null) {
        getChallengeRequests().addAll(challengeRequests);
      }
    }
  }
}
origin: org.restlet.osgi/org.restlet

/**
 * Returns the list of authentication requests sent by an origin server to a
 * client.
 * 
 * @return The list of authentication requests sent by an origin server to a
 *         client.
 */
@Override
public List<ChallengeRequest> getChallengeRequests() {
  return getWrappedResponse().getChallengeRequests();
}
origin: org.restlet.osgi/org.restlet

/**
 * Returns the list of authentication requests sent by an origin server to a
 * client. If none is available, an empty list is returned.
 * 
 * @return The list of authentication requests.
 * @see Response#getChallengeRequests()
 */
public List<ChallengeRequest> getChallengeRequests() {
  return getResponse() == null ? null : getResponse()
      .getChallengeRequests();
}
origin: org.restlet.osgi/org.restlet

/**
 * Challenges the client by adding a challenge request to the response and
 * by setting the status to {@link Status#CLIENT_ERROR_UNAUTHORIZED}.
 * 
 * @param response
 *            The response to update.
 * @param stale
 *            Indicates if the new challenge is due to a stale response.
 */
public void challenge(Response response, boolean stale) {
  boolean loggable = response.getRequest().isLoggable()
      && getLogger().isLoggable(Level.FINE);
  if (loggable) {
    getLogger().log(Level.FINE,
        "An authentication challenge was requested.");
  }
  response.setStatus(Status.CLIENT_ERROR_UNAUTHORIZED);
  response.getChallengeRequests().add(createChallengeRequest(stale));
}
origin: com.github.ansell.restlet-utils/restlet-utils

response.getChallengeRequests().clear();
origin: org.restlet.osgi/org.restlet

response.getChallengeRequests().clear();
origin: org.restlet.osgi/org.restlet

  List<ChallengeRequest> crs = org.restlet.engine.security.AuthenticatorUtils
      .parseRequest(response, header.getValue(), headers);
  response.getChallengeRequests().addAll(crs);
} else if (HEADER_PROXY_AUTHENTICATE.equalsIgnoreCase(header.getName())) {
  List<ChallengeRequest> crs = org.restlet.engine.security.AuthenticatorUtils
origin: org.restlet.osgi/org.restlet

ChallengeRequest challengeRequest = null;
for (ChallengeRequest c : response.getChallengeRequests()) {
  if (challengeResponse.getScheme().equals(c.getScheme())) {
    challengeRequest = c;
origin: org.restlet.osgi/org.restlet

if (response.getChallengeRequests() != null) {
  for (ChallengeRequest challengeRequest : response.getChallengeRequests()) {
    addHeader(HEADER_WWW_AUTHENTICATE,
        org.restlet.engine.security.AuthenticatorUtils
org.restletResponsegetChallengeRequests

Javadoc

Returns the list of authentication requests sent by an origin server to a client. If none is available, an empty list is returned.

Note that when used with HTTP connectors, this property maps to the "WWW-Authenticate" header.

Popular methods of Response

  • setStatus
    Sets the status.
  • setEntity
  • getEntity
  • getStatus
    Returns the status.
  • getAttributes
  • getEntityAsText
  • isEntityAvailable
  • getHeaders
  • redirectSeeOther
    Redirects the client to a different URI that SHOULD be retrieved using a GET method on that resource
  • getCookieSettings
    Returns the modifiable series of cookie settings provided by the server. Creates a new instance if n
  • getCurrent
    Returns the response associated to the current thread. Warning: this method should only be used unde
  • getRequest
    Returns the associated request
  • getCurrent,
  • getRequest,
  • getAllowedMethods,
  • getLocationRef,
  • setLocationRef,
  • <init>,
  • getCacheDirectives,
  • getServerInfo,
  • commit

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Permission (java.security)
    Legacy security code; do not use.
  • ImageIO (javax.imageio)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now