Package com.uc4.api.objects
Class SAPConnectionHTTP
java.lang.Object
com.uc4.api.objects.SAPConnectionHTTP
This class can be used to read or set the HTTP connection data
for SAP Connection objects (PI, SLD, JXBP).
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSAPConnectionHTTP(com.uc4.util.XMLDocument doc, ConnectionAttributes session) Creates a new instance of theSAPConnectionHTTPclass by using the values provided in the XML Document. -
Method Summary
Modifier and TypeMethodDescriptiongetLogin()Returns the LogingetURL()Returns the URL of the Service (XI, JXBP, SLD).getUser()Returns the name of the user.voidsetLogin(UC4ObjectName login) Sets the login.voidsetPassword(String pass) Sets the password for the HTTP user.voidSets the URL of the Service (XI, JXBP, SLD).voidSets the name of the user.protected voidstore(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes session, String ocvType) Saves the content of this instance in the specified XML document
-
Constructor Details
-
SAPConnectionHTTP
Creates a new instance of theSAPConnectionHTTPclass by using the values provided in the XML Document.- Parameters:
doc- XML document
-
-
Method Details
-
getURL
Returns the URL of the Service (XI, JXBP, SLD).- Returns:
- HTTP URL or
nullif not set
-
getUser
Returns the name of the user.- Returns:
- User name or
nullif not set
-
setURL
Sets the URL of the Service (XI, JXBP, SLD).- Parameters:
url- HTTP URL
-
setUser
Sets the name of the user.- Parameters:
user- User name
-
setPassword
Sets the password for the HTTP user.- Parameters:
pass- Password
-
setLogin
Sets the login.- Parameters:
login- the new login which should never be null
-
getLogin
Returns the Login- Returns:
- Login or
nullif not set
-
store
protected void store(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes session, String ocvType) Saves the content of this instance in the specified XML document- Parameters:
doc- XML documentobjectElement- Parent element
-