/** * Parses the GitHub event object. * * This is primarily intended for receiving a POST HTTP call from a hook. * Unfortunately, hook script payloads aren't self-descriptive, so you need * to know the type of the payload you are expecting. */ public <T extends GHEventPayload> T parseEventPayload(Reader r, Class<T> type) throws IOException { T t = MAPPER.readValue(r, type); t.wrapUp(this); return t; }
/** * Parses the GitHub event object. * * This is primarily intended for receiving a POST HTTP call from a hook. * Unfortunately, hook script payloads aren't self-descriptive, so you need * to know the type of the payload you are expecting. */ public <T extends GHEventPayload> T parseEventPayload(Reader r, Class<T> type) throws IOException { T t = MAPPER.readValue(r, type); t.wrapUp(this); return t; }
/** * Parses the GitHub event object. * * This is primarily intended for receiving a POST HTTP call from a hook. * Unfortunately, hook script payloads aren't self-descriptive, so you need * to know the type of the payload you are expecting. */ public <T extends GHEventPayload> T parseEventPayload(Reader r, Class<T> type) throws IOException { T t = MAPPER.readValue(r, type); t.wrapUp(this); return t; }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository!=null) repository.wrap(root); }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); } } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); } } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); } } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository!=null) repository.wrap(root); }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); } } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); } } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository!=null) repository.wrap(root); }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository!=null) repository.wrap(root); }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); } } }
/** * Retrieves the payload. * * @param type * Specify one of the {@link GHEventPayload} subtype that defines a type-safe access to the payload. * This must match the {@linkplain #getType() event type}. */ public <T extends GHEventPayload> T getPayload(Class<T> type) throws IOException { T v = GitHub.MAPPER.readValue(payload.traverse(), type); v.wrapUp(root); return v; } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository!=null) repository.wrap(root); }
/** * Retrieves the payload. * * @param type * Specify one of the {@link GHEventPayload} subtype that defines a type-safe access to the payload. * This must match the {@linkplain #getType() event type}. */ public <T extends GHEventPayload> T getPayload(Class<T> type) throws IOException { T v = GitHub.MAPPER.readValue(payload.traverse(), type); v.wrapUp(root); return v; } }
/** * Retrieves the payload. * * @param type * Specify one of the {@link GHEventPayload} subtype that defines a type-safe access to the payload. * This must match the {@linkplain #getType() event type}. */ public <T extends GHEventPayload> T getPayload(Class<T> type) throws IOException { T v = GitHub.MAPPER.readValue(payload.traverse(), type); v.wrapUp(root); return v; } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); repository.wrap(root); if (organization != null) { organization.wrapUp(root); } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); deployment.wrap(repository); } } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); forkee.wrap(root); if (repository != null) { repository.wrap(root); } } }