com.atlassian.confluence.util.http.httpclient
Class TrustedTokenAuthenticator

java.lang.Object
  extended by com.atlassian.confluence.util.http.Authenticator
      extended by com.atlassian.confluence.util.http.httpclient.HttpClientAuthenticator
          extended by com.atlassian.confluence.util.http.httpclient.TrustedTokenAuthenticator
All Implemented Interfaces:
java.io.Serializable

public class TrustedTokenAuthenticator
extends HttpClientAuthenticator

Authenticator that attaches a token from a TrustedTokenFactory to a HTTP request and allows for status reporting on an executed request

See Also:
Serialized Form

Nested Class Summary
static class TrustedTokenAuthenticator.TrustedConnectionStatus
          Represents the status of a trusted connection response
 
Field Summary
 
Fields inherited from class com.atlassian.confluence.util.http.Authenticator
SIMPLE_PROPERTIES
 
Constructor Summary
TrustedTokenAuthenticator(TrustedTokenFactory trustedTokenFactory)
           
 
Method Summary
 TrustedTokenAuthenticator.TrustedConnectionStatus getTrustedConnectionStatus(org.apache.commons.httpclient.HttpMethod httpMethod)
          Return the status of a trusted application response
 org.apache.commons.httpclient.HttpMethod makeMethod(org.apache.commons.httpclient.HttpClient client, java.lang.String url)
           
 
Methods inherited from class com.atlassian.confluence.util.http.httpclient.HttpClientAuthenticator
preprocess
 
Methods inherited from class com.atlassian.confluence.util.http.Authenticator
getProperty, getPropertyNames, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrustedTokenAuthenticator

public TrustedTokenAuthenticator(TrustedTokenFactory trustedTokenFactory)
Method Detail

makeMethod

public org.apache.commons.httpclient.HttpMethod makeMethod(org.apache.commons.httpclient.HttpClient client,
                                                           java.lang.String url)
Overrides:
makeMethod in class HttpClientAuthenticator

getTrustedConnectionStatus

public TrustedTokenAuthenticator.TrustedConnectionStatus getTrustedConnectionStatus(org.apache.commons.httpclient.HttpMethod httpMethod)
Return the status of a trusted application response

Parameters:
httpMethod - executed HttpClient method
Returns:
trusted connection status or null if the request was not a trusted application request


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.