public class FormAuthenticator extends Object implements javax.ws.rs.client.ClientRequestFilter
| Constructor and Description |
|---|
FormAuthenticator(String _baseUri,
String _jsessionid)
Creates a new FormAuthenticator based on a baseUri and a valid JSESSIONID
|
FormAuthenticator(String _baseUri,
String username,
String password)
Creates a new FormAuthenticator based on a baseUri and a username, password.
|
| Modifier and Type | Method and Description |
|---|---|
void |
filter(javax.ws.rs.client.ClientRequestContext requestContext)
This filter method is called for each request.
|
String |
getJsessionID()
returns the current JESSIONID
|
void |
setJsessionID(String jsessionID)
Set a new JSESSIONID
|
public FormAuthenticator(String _baseUri, String _jsessionid)
_baseUri - _jsessionid - MalformedURLExceptionpublic FormAuthenticator(String _baseUri, String username, String password)
_baseUri - username - password - public String getJsessionID()
public void setJsessionID(String jsessionID)
jsessionID - public void filter(javax.ws.rs.client.ClientRequestContext requestContext)
throws IOException
Note: existing cookies will be overwritten!
filter in interface javax.ws.rs.client.ClientRequestFilterIOExceptionCopyright © 2018–2023 Imixs Software Solutions GmbH. All rights reserved.