public class MagentoHTMLClient extends Object
http://[MAGENTO_HOST]/index.php/admin/sales_order/view/order_id/[ORDER_ID]
The reason for this client is the fact that some attributes of a customized
magento shop are not provided by the Magento Rest API and SOAP API. So this
client allows read the html backend data.
The method 'readPage() allows to read the content of a page. The method
expects the deep link uri, userid and password to login to the backend. The
HTMLClient caches a valid session.://www.mkyong.com/java/java-httpurlconnection-follow-redirect-example/,
http://www.mkyong.com/java/how-to-send-http-request-getpost-in-java/| Constructor and Description |
|---|
MagentoHTMLClient(String user,
String password,
String basisURL)
Creates a HTMLCLient instance with backend userid and password.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEncoding() |
String |
getPassword() |
String |
getUser() |
String |
readPage(String uri)
This method get the content of a GET request.
|
String |
readPage(String uri,
boolean redirectWithLogin)
This method get the content of a GET request.
|
void |
setBasicAuhtCredentials(String auser,
String apw)
This method sets additional credentials for a basic Authentification.
|
void |
setEncoding(String aEncoding) |
void |
setPassword(String password) |
void |
setUser(String user) |
public void setBasicAuhtCredentials(String auser, String apw)
auser - apw - public String getEncoding()
public void setEncoding(String aEncoding)
public String getUser()
public void setUser(String user)
public String getPassword()
public void setPassword(String password)
public String readPage(String uri) throws Exception
uri - - Rest Endpoint URIExceptionpublic String readPage(String uri, boolean redirectWithLogin) throws Exception
uri - - Rest Endpoint URIredirectWithLogin - - indicates if a form based login form in the response should
be processedExceptionCopyright © 2019 Imixs Software Solutions GmbH. All rights reserved.