public class ServiceArgs extends Args
ServiceArgs
class contains a collection of arguments that are
used to initialize a Splunk Service
instance.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
String |
app
Deprecated.
Use
setApp(String) instead. |
String |
host
Deprecated.
Use
setHost(String) instead. |
String |
owner
Deprecated.
Use
setOwner(String) instead. |
Integer |
port
Deprecated.
Use
setPort(int) instead. |
String |
scheme
Deprecated.
Use
setScheme(String) instead. |
String |
token
Deprecated.
Use
setToken(String) instead. |
Constructor and Description |
---|
ServiceArgs() |
Modifier and Type | Method and Description |
---|---|
void |
setApp(String app) |
void |
setCookie(String cookie) |
void |
setHost(String host) |
void |
setHttpHeaders(Map<String,String> httpHeaders) |
void |
setHTTPSHandler(URLStreamHandler handler) |
void |
setOwner(String owner) |
void |
setPassword(String password) |
void |
setPort(int port) |
void |
setScheme(String scheme) |
void |
setSSLSecurityProtocol(SSLSecurityProtocol securityProtocol) |
void |
setToken(String token) |
void |
setUsername(String username) |
add, create, create, create, encode, encode, encode, get
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public String app
setApp(String)
instead.public String host
setHost(String)
instead.public String owner
setOwner(String)
instead.public Integer port
setPort(int)
instead.public String scheme
setScheme(String)
instead.public String token
setToken(String)
instead.public void setApp(String app)
app
- The application context of the service.public void setHost(String host)
host
- The host name of the service.public void setHTTPSHandler(URLStreamHandler handler)
handler
- A URLStreamHandler to handle HTTPS requests for the service.public void setOwner(String owner)
owner
- The owner context of the service.public void setPassword(String password)
password
- The password to use when logging in.public void setPort(int port)
port
- The port number of the service.public void setScheme(String scheme)
scheme
- The scheme to use for accessing the service.public void setSSLSecurityProtocol(SSLSecurityProtocol securityProtocol)
securityProtocol
- The SSL security protocol for the service.public void setToken(String token)
token
- A Splunk authentication token to use for the session.public void setUsername(String username)
username
- The username to use when logging in.public void setCookie(String cookie)
cookie
- A valid login cookie.Copyright © 2022 Splunk, Inc.. All rights reserved.