Package com.uc4.api.objects
Class SAPConnectionHTTP
- java.lang.Object
-
- com.uc4.api.objects.SAPConnectionHTTP
-
public class SAPConnectionHTTP extends java.lang.Object
This class can be used to read or set the HTTP connection data for SAP Connection objects (PI, SLD, JXBP).
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UC4ObjectName
getLogin()
Returns the Loginjava.lang.String
getURL()
Returns the URL of the Service (XI, JXBP, SLD).java.lang.String
getUser()
Returns the name of the user.void
setLogin(UC4ObjectName login)
Sets the login.void
setPassword(java.lang.String pass)
Sets the password for the HTTP user.void
setURL(java.lang.String url)
Sets the URL of the Service (XI, JXBP, SLD).void
setUser(java.lang.String user)
Sets the name of the user.protected void
store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes session, java.lang.String ocvType)
Saves the content of this instance in the specified XML document
-
-
-
Constructor Detail
-
SAPConnectionHTTP
protected SAPConnectionHTTP(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
Creates a new instance of theSAPConnectionHTTP
class by using the values provided in the XML Document.- Parameters:
doc
- XML document
-
-
Method Detail
-
getURL
public java.lang.String getURL()
Returns the URL of the Service (XI, JXBP, SLD).- Returns:
- HTTP URL or
null
if not set
-
getUser
public java.lang.String getUser()
Returns the name of the user.- Returns:
- User name or
null
if not set
-
setURL
public void setURL(java.lang.String url)
Sets the URL of the Service (XI, JXBP, SLD).- Parameters:
url
- HTTP URL
-
setUser
public void setUser(java.lang.String user)
Sets the name of the user.- Parameters:
user
- User name
-
setPassword
public void setPassword(java.lang.String pass)
Sets the password for the HTTP user.- Parameters:
pass
- Password
-
setLogin
public void setLogin(UC4ObjectName login)
Sets the login.- Parameters:
login
- the new login which should never be null
-
getLogin
public UC4ObjectName getLogin()
Returns the Login- Returns:
- Login or
null
if not set
-
store
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes session, java.lang.String ocvType)
Saves the content of this instance in the specified XML document- Parameters:
doc
- XML documentobjectElement
- Parent element
-
-