Class GHPages
java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.entities.GHPages
- All Implemented Interfaces:
HttpRequestInterface
,JSONHelper
Represents the GitHub Pages configuration for a repository.
This class provides methods and properties to access information about the GitHub Pages configuration.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T>
-
Constructor Summary
ConstructorsConstructorDescriptionGHPages
(org.json.JSONObject jsonObject) Constructs a new GHPages instance with the provided JSON object. -
Method Summary
Modifier and TypeMethodDescriptiongetCname()
Returns the CNAME for the GitHub Pages site.Returns the HTML URL of the GitHub Pages site.Returns the HTTPS certificate information for the GitHub Pages site.Returns the date and time when the domain was pending verification.Returns the protected domain state of the GitHub Pages site.org.json.JSONObject
Returns the source configuration for the GitHub Pages site.Returns the status of the GitHub Pages site.getUrl()
Returns the URL of the GitHub Pages site.boolean
Returns whether a custom 404 page is used for the GitHub Pages site.boolean
Returns whether HTTPS is enforced for the GitHub Pages site.boolean
isPublic()
Returns whether the GitHub Pages site is public.Methods inherited from class io.github.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrl, toJSONObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.coho04.githubapi.interfaces.HttpRequestInterface
extractNextPageUrl, sendDeleteRequest, sendDeleteRequestWithResponseCode, sendGetRequest, sendGetRequestWithLinkHeader, sendGetRequestWithResponseCode, sendPatchRequest, sendPostRequest, sendPutRequest
Methods inherited from interface io.github.coho04.githubapi.interfaces.JSONHelper
getArrayOrNull, getBooleanOrNull, getIntOrNull, getJSONArrayToStringList, getJSONObjectOrNull, getLocalDateOrNull, getLongOrNull, getStringOrNull
-
Constructor Details
-
GHPages
public GHPages(org.json.JSONObject jsonObject) Constructs a new GHPages instance with the provided JSON object.- Parameters:
jsonObject
- the JSON object containing the GitHub Pages data
-
-
Method Details
-
getUrl
Returns the URL of the GitHub Pages site.- Returns:
- the URL of the GitHub Pages site
-
getHttpsCertificate
Returns the HTTPS certificate information for the GitHub Pages site.- Returns:
- the HTTPS certificate information
-
getSource
public org.json.JSONObject getSource()Returns the source configuration for the GitHub Pages site.- Returns:
- the source configuration as a JSONObject
-
getPendingDomainUnverifiedAt
Returns the date and time when the domain was pending verification.- Returns:
- the date and time when the domain was pending verification
-
getCname
Returns the CNAME for the GitHub Pages site.- Returns:
- the CNAME for the GitHub Pages site
-
getHtmlUrl
Returns the HTML URL of the GitHub Pages site.- Returns:
- the HTML URL of the GitHub Pages site
-
getProtectedDomainState
Returns the protected domain state of the GitHub Pages site.- Returns:
- the protected domain state
-
getStatus
Returns the status of the GitHub Pages site.- Returns:
- the status of the GitHub Pages site
-
isCustom404
public boolean isCustom404()Returns whether a custom 404 page is used for the GitHub Pages site.- Returns:
- true if a custom 404 page is used, false otherwise
-
isHttpsEnforced
public boolean isHttpsEnforced()Returns whether HTTPS is enforced for the GitHub Pages site.- Returns:
- true if HTTPS is enforced, false otherwise
-
isPublic
public boolean isPublic()Returns whether the GitHub Pages site is public.- Returns:
- true if the site is public, false otherwise
-