public abstract class GHObject extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
created_at |
protected long |
id |
protected Map<String,List<String>> |
responseHeaderFields
Capture response HTTP headers on the state object.
|
protected String |
updated_at |
protected String |
url |
Modifier and Type | Method and Description |
---|---|
Date |
getCreatedAt()
When was this resource created?
|
abstract URL |
getHtmlUrl()
URL of this object for humans, which renders some HTML.
|
long |
getId()
Unique ID number of this resource.
|
Map<String,List<String>> |
getResponseHeaderFields()
Deprecated.
|
Date |
getUpdatedAt()
When was this resource last updated?
|
URL |
getUrl()
API URL of this object.
|
String |
toString()
String representation to assist debugging and inspection.
|
protected Map<String,List<String>> responseHeaderFields
protected String url
protected long id
protected String created_at
protected String updated_at
@CheckForNull @Deprecated public Map<String,List<String>> getResponseHeaderFields()
Some of the HTTP headers have nothing to do with the object, for example "Cache-Control" and others are different depending on how this object was retrieved. This method was added as a kind of hack to allow the caller to retrieve OAuth scopes and such. Use with caution. The method might be removed in the future.
@WithBridgeMethods(value=java.lang.String.class, adapterMethod="createdAtStr") public Date getCreatedAt() throws IOException
IOException
@WithBridgeMethods(value=java.lang.String.class, adapterMethod="urlToString") public URL getUrl()
@WithBridgeMethods(value=java.lang.String.class, adapterMethod="urlToString") public abstract URL getHtmlUrl() throws IOException
IOException
public Date getUpdatedAt() throws IOException
IOException
@WithBridgeMethods(value={java.lang.String.class,int.class}, adapterMethod="longToStringOrInt") public long getId()
Copyright © 2018. All rights reserved.