public class DefaultHttpAuthentication extends Object implements HttpAuthentication, MuleContextAware, org.mule.runtime.api.lifecycle.Initialisable
| Constructor and Description |
|---|
DefaultHttpAuthentication(HttpAuthenticationType type) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(Event 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(Event 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(Event firstAttemptResponseEvent)
Detects if there was an authentication failure in the response.
|
public DefaultHttpAuthentication(HttpAuthenticationType type)
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic 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(Event event)
public void authenticate(Event 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(Event firstAttemptResponseEvent)
HttpAuthenticationshouldRetry in interface HttpAuthenticationfirstAttemptResponseEvent - The event with the response of the request.Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.