static String createEventsJson(Page<EventInfo> page, Probe probe) { JsonArrayBuilder eventsBuilder = Json.arrayBuilder(); for (EventInfo event : page.getData()) { eventsBuilder.add(createEventJson(event, probe)); } return createPageJson(page, eventsBuilder); }
static String createEventsJson(Page<EventInfo> page, Probe probe) { JsonArrayBuilder eventsBuilder = Json.arrayBuilder(); for (EventInfo event : page.getData()) { eventsBuilder.add(createEventJson(event, probe)); } return createPageJson(page, eventsBuilder); }
static String createEventsJson(Page<EventInfo> page, Probe probe) { JsonArrayBuilder eventsBuilder = Json.arrayBuilder(); for (EventInfo event : page.getData()) { eventsBuilder.add(createEventJson(event, probe)); } return createPageJson(page, eventsBuilder); }
static String createEventsJson(Page<EventInfo> page, Probe probe) { JsonArrayBuilder eventsBuilder = Json.arrayBuilder(); for (EventInfo event : page.getData()) { eventsBuilder.add(createEventJson(event, probe)); } return createPageJson(page, eventsBuilder); }
static String createEventsJson(Page<EventInfo> page, Probe probe) { JsonArrayBuilder eventsBuilder = Json.arrayBuilder(); for (EventInfo event : page.getData()) { eventsBuilder.add(createEventJson(event, probe)); } return createPageJson(page, eventsBuilder); }
static String createEventsJson(Page<EventInfo> page, Probe probe) { JsonArrayBuilder eventsBuilder = Json.arrayBuilder(); for (EventInfo event : page.getData()) { eventsBuilder.add(createEventJson(event, probe)); } return createPageJson(page, eventsBuilder); }
static String createEventsJson(Page<EventInfo> page, Probe probe) { JsonArrayBuilder eventsBuilder = Json.arrayBuilder(); for (EventInfo event : page.getData()) { eventsBuilder.add(createEventJson(event, probe)); } return createPageJson(page, eventsBuilder); }
/** * * @param probe * @return the collection of all observer methods, using basic representation */ static String createInvocationsJson(Page<Invocation> page, Probe probe, Representation representation) { JsonArrayBuilder invocationsBuilder = Json.arrayBuilder(); if (representation == null) { representation = Representation.BASIC; } for (Invocation invocation : page.getData()) { switch (representation) { case BASIC: invocationsBuilder.add(createBasicInvocationJson(invocation, probe)); break; case FULL: invocationsBuilder.add(createFullInvocationJson(invocation, probe)); break; default: throw new UnsupportedOperationException(representation.toString()); } } return createPageJson(page, invocationsBuilder); }
/** * * @param probe * @return the collection of all observer methods, using basic representation */ static String createInvocationsJson(Page<Invocation> page, Probe probe, Representation representation) { JsonArrayBuilder invocationsBuilder = Json.arrayBuilder(); if (representation == null) { representation = Representation.BASIC; } for (Invocation invocation : page.getData()) { switch (representation) { case BASIC: invocationsBuilder.add(createBasicInvocationJson(invocation, probe)); break; case FULL: invocationsBuilder.add(createFullInvocationJson(invocation, probe)); break; default: throw new UnsupportedOperationException(representation.toString()); } } return createPageJson(page, invocationsBuilder); }
/** * * @param probe * @return the collection of all observer methods, using basic representation */ static String createObserversJson(Page<ObserverMethod<?>> page, Probe probe, Representation representation) { JsonArrayBuilder observersBuilder = Json.arrayBuilder(); if (representation == null) { representation = Representation.BASIC; } for (ObserverMethod<?> observerMethod : page.getData()) { switch (representation) { case BASIC: observersBuilder.add(createBasicObserverJson(observerMethod, probe)); break; case FULL: observersBuilder.add(createFullObserverJson(observerMethod, probe)); break; default: throw new UnsupportedOperationException(representation.toString()); } } return createPageJson(page, observersBuilder); }
/** * * @param probe * @return the collection of all observer methods, using basic representation */ static String createInvocationsJson(Page<Invocation> page, Probe probe, Representation representation) { JsonArrayBuilder invocationsBuilder = Json.arrayBuilder(); if (representation == null) { representation = Representation.BASIC; } for (Invocation invocation : page.getData()) { switch (representation) { case BASIC: invocationsBuilder.add(createBasicInvocationJson(invocation, probe)); break; case FULL: invocationsBuilder.add(createFullInvocationJson(invocation, probe)); break; default: throw new UnsupportedOperationException(representation.toString()); } } return createPageJson(page, invocationsBuilder); }
/** * * @param probe * @return the collection of all observer methods, using basic representation */ static String createInvocationsJson(Page<Invocation> page, Probe probe, Representation representation) { JsonArrayBuilder invocationsBuilder = Json.arrayBuilder(); if (representation == null) { representation = Representation.BASIC; } for (Invocation invocation : page.getData()) { switch (representation) { case BASIC: invocationsBuilder.add(createBasicInvocationJson(invocation, probe)); break; case FULL: invocationsBuilder.add(createFullInvocationJson(invocation, probe)); break; default: throw new UnsupportedOperationException(representation.toString()); } } return createPageJson(page, invocationsBuilder); }
/** * * @param probe * @return the collection of all observer methods, using basic representation */ static String createObserversJson(Page<ObserverMethod<?>> page, Probe probe, Representation representation) { JsonArrayBuilder observersBuilder = Json.arrayBuilder(); if (representation == null) { representation = Representation.BASIC; } for (ObserverMethod<?> observerMethod : page.getData()) { switch (representation) { case BASIC: observersBuilder.add(createBasicObserverJson(observerMethod, probe)); break; case FULL: observersBuilder.add(createFullObserverJson(observerMethod, probe)); break; default: throw new UnsupportedOperationException(representation.toString()); } } return createPageJson(page, observersBuilder); }
/** * * @param probe * @return the collection of all observer methods, using basic representation */ static String createObserversJson(Page<ObserverMethod<?>> page, Probe probe, Representation representation) { JsonArrayBuilder observersBuilder = Json.arrayBuilder(); if (representation == null) { representation = Representation.BASIC; } for (ObserverMethod<?> observerMethod : page.getData()) { switch (representation) { case BASIC: observersBuilder.add(createBasicObserverJson(observerMethod, probe)); break; case FULL: observersBuilder.add(createFullObserverJson(observerMethod, probe)); break; default: throw new UnsupportedOperationException(representation.toString()); } } return createPageJson(page, observersBuilder); }
/** * * @param probe * @return the collection of all observer methods, using basic representation */ static String createObserversJson(Page<ObserverMethod<?>> page, Probe probe, Representation representation) { JsonArrayBuilder observersBuilder = Json.arrayBuilder(); if (representation == null) { representation = Representation.BASIC; } for (ObserverMethod<?> observerMethod : page.getData()) { switch (representation) { case BASIC: observersBuilder.add(createBasicObserverJson(observerMethod, probe)); break; case FULL: observersBuilder.add(createFullObserverJson(observerMethod, probe)); break; default: throw new UnsupportedOperationException(representation.toString()); } } return createPageJson(page, observersBuilder); }
/** * * @param probe * @return the collection of all observer methods, using basic representation */ static String createObserversJson(Page<ObserverMethod<?>> page, Probe probe, Representation representation) { JsonArrayBuilder observersBuilder = Json.arrayBuilder(); if (representation == null) { representation = Representation.BASIC; } for (ObserverMethod<?> observerMethod : page.getData()) { switch (representation) { case BASIC: observersBuilder.add(createBasicObserverJson(observerMethod, probe)); break; case FULL: observersBuilder.add(createFullObserverJson(observerMethod, probe)); break; default: throw new UnsupportedOperationException(representation.toString()); } } return createPageJson(page, observersBuilder); }
/** * * @param probe * @return the collection of all observer methods, using basic representation */ static String createInvocationsJson(Page<Invocation> page, Probe probe, Representation representation) { JsonArrayBuilder invocationsBuilder = Json.arrayBuilder(); if (representation == null) { representation = Representation.BASIC; } for (Invocation invocation : page.getData()) { switch (representation) { case BASIC: invocationsBuilder.add(createBasicInvocationJson(invocation, probe)); break; case FULL: invocationsBuilder.add(createFullInvocationJson(invocation, probe)); break; default: throw new UnsupportedOperationException(representation.toString()); } } return createPageJson(page, invocationsBuilder); }
/** * * @param probe * @return the collection of all observer methods, using basic representation */ static String createInvocationsJson(Page<Invocation> page, Probe probe, Representation representation) { JsonArrayBuilder invocationsBuilder = Json.arrayBuilder(); if (representation == null) { representation = Representation.BASIC; } for (Invocation invocation : page.getData()) { switch (representation) { case BASIC: invocationsBuilder.add(createBasicInvocationJson(invocation, probe)); break; case FULL: invocationsBuilder.add(createFullInvocationJson(invocation, probe)); break; default: throw new UnsupportedOperationException(representation.toString()); } } return createPageJson(page, invocationsBuilder); }
/** * * @param probe * @return the collection of all observer methods, using basic representation */ static String createInvocationsJson(Page<Invocation> page, Probe probe, Representation representation) { JsonArrayBuilder invocationsBuilder = Json.arrayBuilder(); if (representation == null) { representation = Representation.BASIC; } for (Invocation invocation : page.getData()) { switch (representation) { case BASIC: invocationsBuilder.add(createBasicInvocationJson(invocation, probe)); break; case FULL: invocationsBuilder.add(createFullInvocationJson(invocation, probe)); break; default: throw new UnsupportedOperationException(representation.toString()); } } return createPageJson(page, invocationsBuilder); }
/** * * @param probe * @return the collection of all observer methods, using basic representation */ static String createObserversJson(Page<ObserverMethod<?>> page, Probe probe, Representation representation) { JsonArrayBuilder observersBuilder = Json.arrayBuilder(); if (representation == null) { representation = Representation.BASIC; } for (ObserverMethod<?> observerMethod : page.getData()) { switch (representation) { case BASIC: observersBuilder.add(createBasicObserverJson(observerMethod, probe)); break; case FULL: observersBuilder.add(createFullObserverJson(observerMethod, probe)); break; default: throw new UnsupportedOperationException(representation.toString()); } } return createPageJson(page, observersBuilder); }