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
ConstructorsModifierConstructorDescriptionprotected
SAPConnectionHTTP
(com.uc4.util.XMLDocument doc, ConnectionAttributes session) Creates a new instance of theSAPConnectionHTTP
class 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.void
setLogin
(UC4ObjectName login) Sets the login.void
setPassword
(String pass) Sets the password for the HTTP user.void
Sets the URL of the Service (XI, JXBP, SLD).void
Sets the name of the user.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
-
Constructor Details
-
SAPConnectionHTTP
Creates a new instance of theSAPConnectionHTTP
class 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
null
if not set
-
getUser
Returns the name of the user.- Returns:
- User name or
null
if 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
null
if 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
-