public class KickstartUrlHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COBBLER_MEDIA_VARIABLE |
static java.lang.String |
COBBLER_SERVER_VARIABLE |
static java.lang.String |
COBBLER_URL_BASE_PATH |
static java.lang.String |
KS_CFG |
static java.lang.String |
KS_DIST |
Constructor and Description |
---|
KickstartUrlHelper(KickstartableTree ksTreeIn)
Constructor.
|
KickstartUrlHelper(KickstartData ksDataIn)
Constructor.
|
KickstartUrlHelper(KickstartData ksDataIn,
java.lang.String hostIn)
Constructor.
|
KickstartUrlHelper(KickstartData ksDataIn,
java.lang.String hostIn,
java.lang.String protocolIn)
Constructor with specification of protocol
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCobblerMediaUrl()
Get the cobbler style --url:
http://$http_server/$media_url
To be filled out by cobbler.
|
java.lang.String |
getCobblerMediaUrlBase()
Get the cobbler style --url base:
http://$http_server/
|
static java.lang.String |
getCobblerProfilePath(java.lang.String profileName)
Returns the actual kickstart url
|
static java.lang.String |
getCobblerProfileUrl(KickstartData data)
Get the cobbler profile url
|
java.lang.String |
getKickstartChildRepoUrl(Channel child)
get a kickstart repo url for a child channel
|
java.lang.String |
getKickstartFileUrl()
The definitive method for getting the URL to a given
Kickstart profile on the Spacewalk server.
|
java.lang.String |
getKickstartFileUrlBase()
The base for a kickstart URL including the org:
http://spacewalk.example.com/kickstart/ks/org/1/
|
static java.lang.String |
getKickstartFileUrlBase(Org org,
java.lang.String host,
java.lang.String protocol)
The base for a kickstart URL including the org:
http://spacewalk.example.com/kickstart/ks/cfg/org/1/
|
java.lang.String |
getKickstartFileUrlIpRange()
Get the URL for the ip_range file server.
|
static java.lang.String |
getKickstartFileUrlIpRange(Org org,
java.lang.String host,
java.lang.String protocol)
Get the URL for the ip_range file server.
|
java.lang.String |
getKickstartMediaPath()
Get the media path for the KickstartableTree.
|
java.lang.String |
getKickstartMediaPath(KickstartSession session,
java.util.Date date)
Get the url path portion for this kickstart that is used
during a Kickstart Session that tracks the downloads.
|
java.lang.String |
getKickstartMediaSessionUrl(KickstartSession session)
Get the --url parameter for this kickstart that is used
during a Kickstart Session that tracks the downloads.
|
java.lang.String |
getKickstartMediaUrl()
Get the --url parameter for this kickstart.
|
java.lang.String |
getKickstartOrgDefaultUrl()
Get the URL to the org_default for this Org.
|
java.lang.String |
getRepoUrl(RepoInfo repo)
Return the repo URL to be used in the formatted
|
public static final java.lang.String COBBLER_URL_BASE_PATH
public static final java.lang.String KS_DIST
public static final java.lang.String KS_CFG
public static final java.lang.String COBBLER_SERVER_VARIABLE
public static final java.lang.String COBBLER_MEDIA_VARIABLE
public KickstartUrlHelper(KickstartData ksDataIn)
ksDataIn
- who's URL you desire.public KickstartUrlHelper(KickstartableTree ksTreeIn)
ksTreeIn
- who's URL you desire.public KickstartUrlHelper(KickstartData ksDataIn, java.lang.String hostIn)
ksDataIn
- who's URL you desire.hostIn
- who is hosting the kickstart file.public KickstartUrlHelper(KickstartData ksDataIn, java.lang.String hostIn, java.lang.String protocolIn)
ksDataIn
- who's URL you desire.hostIn
- who is hosting the kickstart file.protocolIn
- to use in the URLpublic java.lang.String getKickstartFileUrl()
public java.lang.String getKickstartFileUrlBase()
public static java.lang.String getKickstartFileUrlBase(Org org, java.lang.String host, java.lang.String protocol)
org
- the org of the kickstart datahost
- the host nameprotocol
- the protocol used.public java.lang.String getKickstartOrgDefaultUrl()
public java.lang.String getKickstartFileUrlIpRange()
public static java.lang.String getKickstartFileUrlIpRange(Org org, java.lang.String host, java.lang.String protocol)
org
- the org of the kickstart datahost
- the host nameprotocol
- the protocol used.public java.lang.String getKickstartMediaUrl()
public java.lang.String getKickstartChildRepoUrl(Channel child)
child
- the child channelpublic java.lang.String getKickstartMediaPath()
public java.lang.String getCobblerMediaUrl()
public java.lang.String getCobblerMediaUrlBase()
public java.lang.String getRepoUrl(RepoInfo repo)
repo
- the repo objectpublic java.lang.String getKickstartMediaPath(KickstartSession session, java.util.Date date)
session
- to compute tracking URL for.date
- for tiny url trackpublic java.lang.String getKickstartMediaSessionUrl(KickstartSession session)
session
- to compute tracking URL for.public static java.lang.String getCobblerProfilePath(java.lang.String profileName)
profileName
- the name of the profilepublic static java.lang.String getCobblerProfileUrl(KickstartData data)
data
- the kickstart data