Package de.coho04.githubapi.entities
Klasse GHPages
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.entities.GHPages
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
Represents the GitHub Pages configuration for a repository.
This class provides methods and properties to access information about the GitHub Pages configuration.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGHPages(org.json.JSONObject jsonObject) Constructs a new GHPages instance with the provided JSON object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetCname()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.JSONObjectReturns 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.booleanReturns whether a custom 404 page is used for the GitHub Pages site.booleanReturns whether HTTPS is enforced for the GitHub Pages site.booleanisPublic()Returns whether the GitHub Pages site is public.Von Klasse geerbte Methoden de.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrl, toJSONObjectVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.HttpRequestInterface
extractNextPageUrl, sendDeleteRequest, sendDeleteRequestWithResponseCode, sendGetRequest, sendGetRequestWithLinkHeader, sendGetRequestWithResponseCode, sendPatchRequest, sendPostRequest, sendPutRequestVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.JSONHelper
getArrayOrNull, getBooleanOrNull, getIntOrNull, getJSONArrayToStringList, getJSONObjectOrNull, getLocalDateOrNull, getLongOrNull, getStringOrNull
-
Konstruktordetails
-
GHPages
public GHPages(org.json.JSONObject jsonObject) Constructs a new GHPages instance with the provided JSON object.- Parameter:
jsonObject- the JSON object containing the GitHub Pages data
-
-
Methodendetails
-
getUrl
Returns the URL of the GitHub Pages site.- Gibt zurück:
- the URL of the GitHub Pages site
-
getHttpsCertificate
Returns the HTTPS certificate information for the GitHub Pages site.- Gibt zurück:
- the HTTPS certificate information
-
getSource
public org.json.JSONObject getSource()Returns the source configuration for the GitHub Pages site.- Gibt zurück:
- the source configuration as a JSONObject
-
getPendingDomainUnverifiedAt
Returns the date and time when the domain was pending verification.- Gibt zurück:
- the date and time when the domain was pending verification
-
getCname
Returns the CNAME for the GitHub Pages site.- Gibt zurück:
- the CNAME for the GitHub Pages site
-
getHtmlUrl
Returns the HTML URL of the GitHub Pages site.- Gibt zurück:
- the HTML URL of the GitHub Pages site
-
getProtectedDomainState
Returns the protected domain state of the GitHub Pages site.- Gibt zurück:
- the protected domain state
-
getStatus
Returns the status of the GitHub Pages site.- Gibt zurück:
- the status of the GitHub Pages site
-
isCustom404
public boolean isCustom404()Returns whether a custom 404 page is used for the GitHub Pages site.- Gibt zurück:
- true if a custom 404 page is used, false otherwise
-
isHttpsEnforced
public boolean isHttpsEnforced()Returns whether HTTPS is enforced for the GitHub Pages site.- Gibt zurück:
- true if HTTPS is enforced, false otherwise
-
isPublic
public boolean isPublic()Returns whether the GitHub Pages site is public.- Gibt zurück:
- true if the site is public, false otherwise
-