|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.http.BasicAuthCredentials
public class BasicAuthCredentials
| Field Summary | |
|---|---|
protected org.apache.servicemix.expression.Expression |
password
|
protected org.apache.servicemix.expression.Expression |
username
|
| Constructor Summary | |
|---|---|
BasicAuthCredentials()
|
|
| Method Summary | |
|---|---|
void |
applyCredentials(org.apache.commons.httpclient.HttpClient client,
javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
Applies this authentication to the given method. |
void |
applyProxyCredentials(org.apache.commons.httpclient.HttpClient client,
javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
Applies this authentication to the given method. |
org.apache.servicemix.expression.Expression |
getPassword()
Returns the password for authentication. |
org.apache.servicemix.expression.Expression |
getUsername()
Returns the username for authentication. |
void |
setPassword(org.apache.servicemix.expression.Expression password)
Sets the password to use for authentocation. |
void |
setUsername(org.apache.servicemix.expression.Expression username)
Sets the username to use for authentocation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.servicemix.expression.Expression username
protected org.apache.servicemix.expression.Expression password
| Constructor Detail |
|---|
public BasicAuthCredentials()
| Method Detail |
|---|
public org.apache.servicemix.expression.Expression getUsername()
Expression containing the usernamepublic void setUsername(org.apache.servicemix.expression.Expression username)
username - am Expression containing the username.public org.apache.servicemix.expression.Expression getPassword()
Expression containing the passwordpublic void setPassword(org.apache.servicemix.expression.Expression password)
password - am Expression containing the password.
public void applyCredentials(org.apache.commons.httpclient.HttpClient client,
javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
throws javax.jbi.messaging.MessagingException
client - the client on which to set the authentication informationexchange - the message exchange to be used for evaluating the expressionmessage - the normalized message to be used for evaluating the expression
javax.jbi.messaging.MessagingException - if the correct value for username/password cannot be determined when using an expression
public void applyProxyCredentials(org.apache.commons.httpclient.HttpClient client,
javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
throws javax.jbi.messaging.MessagingException
client - the client on which to set the authentication informationexchange - the message exchange to be used for evaluating the expressionmessage - the normalized message to be used for evaluating the expression
javax.jbi.messaging.MessagingException - if the correct value for user name/password cannot be determined when using an expression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||