public class DefaultHttpAuthentication extends Object implements HttpAuthentication, MuleContextAware, Initialisable
PHASE_NAME| Constructor and Description |
|---|
DefaultHttpAuthentication(HttpAuthenticationType type) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(MuleEvent muleEvent,
HttpRequestBuilder requestBuilder)
Adds authentication information to the request.
|
String |
getDomain() |
String |
getPassword() |
String |
getPreemptive() |
HttpAuthenticationType |
getType() |
String |
getUsername() |
String |
getWorkstation() |
void |
initialise() |
HttpRequestAuthentication |
resolveRequestAuthentication(MuleEvent event) |
void |
setDomain(String domain) |
void |
setMuleContext(MuleContext muleContext) |
void |
setPassword(String password) |
void |
setPreemptive(String preemptive) |
void |
setUsername(String username) |
void |
setWorkstation(String workstation) |
boolean |
shouldRetry(MuleEvent firstAttemptResponseEvent)
Detects if there was an authentication failure in the response.
|
public DefaultHttpAuthentication(HttpAuthenticationType type)
public void initialise()
throws InitialisationException
initialise in interface InitialisableInitialisationExceptionpublic String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public String getDomain()
public void setDomain(String domain)
public HttpAuthenticationType getType()
public String getWorkstation()
public void setWorkstation(String workstation)
public String getPreemptive()
public void setPreemptive(String preemptive)
public void setMuleContext(MuleContext muleContext)
setMuleContext in interface MuleContextAwarepublic HttpRequestAuthentication resolveRequestAuthentication(MuleEvent event)
public void authenticate(MuleEvent muleEvent, HttpRequestBuilder requestBuilder)
HttpAuthenticationauthenticate in interface HttpAuthenticationmuleEvent - The event that is being processed.requestBuilder - The builder that is being used to create the HTTP request.public boolean shouldRetry(MuleEvent firstAttemptResponseEvent)
HttpAuthenticationshouldRetry in interface HttpAuthenticationfirstAttemptResponseEvent - The event with the response of the request.Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.