@Override public JsonElement serialize(RouteOptions src, Type typeOfSrc, JsonSerializationContext context) { JsonObject route = new JsonObject(); if (src.name() != null) { route.addProperty("name", src.name()); if (src.getNetwork() != null) { route.addProperty("network", src.getNetwork().toString()); if (src.getNextHopGateway() != null) { route.addProperty("nextHopGateway", src.getNextHopGateway().toString()); if (src.getNextHopInstance() != null) { route.addProperty("nextHopInstance", src.getNextHopInstance().toString()); if (src.getNextHopNetwork() != null) { route.addProperty("nextHopNetwork", src.getNextHopNetwork().toString()); if (src.getDestRange() != null) { route.addProperty("destRange", src.getDestRange()); if (src.getDescription() != null) { route.addProperty("description", src.getDescription()); if (src.getPriority() != null) { route.addProperty("priority", src.getPriority()); if (src.getNextHopIp() != null) { route.addProperty("nextHopIp", src.getNextHopIp()); if (!src.getTags().isEmpty()) {
@Override public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) { RouteOptions options = (RouteOptions) postParams.get("options"); options.name(postParams.get("name").toString()); options.network((URI) postParams.get("network")); return bindToRequest(request, options); }
@Override public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) { RouteOptions options = (RouteOptions) postParams.get("options"); options.name(postParams.get("name").toString()); options.network((URI) postParams.get("network")); return bindToRequest(request, options); }
@Override public JsonElement serialize(RouteOptions src, Type typeOfSrc, JsonSerializationContext context) { JsonObject route = new JsonObject(); if (src.getName() != null) { route.addProperty("name", src.getName()); if (src.getNetwork() != null) { route.addProperty("network", src.getNetwork().toString()); if (src.getNextHopGateway() != null) { route.addProperty("nextHopGateway", src.getNextHopGateway().toString()); if (src.getNextHopInstance() != null) { route.addProperty("nextHopInstance", src.getNextHopInstance().toString()); if (src.getNextHopNetwork() != null) { route.addProperty("nextHopNetwork", src.getNextHopNetwork().toString()); if (src.getDestRange() != null) { route.addProperty("destRange", src.getDestRange()); if (src.getDescription() != null) { route.addProperty("description", src.getDescription()); if (src.getPriority() != null) { route.addProperty("priority", src.getPriority()); if (src.getNextHopIp() != null) { route.addProperty("nextHopIp", src.getNextHopIp());
@Override public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) { RouteOptions options = (RouteOptions) postParams.get("options"); options.name(postParams.get("name").toString()); options.network((URI) postParams.get("network")); return bindToRequest(request, options); }
@Override public JsonElement serialize(RouteOptions src, Type typeOfSrc, JsonSerializationContext context) { JsonObject route = new JsonObject(); if (src.name() != null) { route.addProperty("name", src.name()); if (src.getNetwork() != null) { route.addProperty("network", src.getNetwork().toString()); if (src.getNextHopGateway() != null) { route.addProperty("nextHopGateway", src.getNextHopGateway().toString()); if (src.getNextHopInstance() != null) { route.addProperty("nextHopInstance", src.getNextHopInstance().toString()); if (src.getNextHopNetwork() != null) { route.addProperty("nextHopNetwork", src.getNextHopNetwork().toString()); if (src.getDestRange() != null) { route.addProperty("destRange", src.getDestRange()); if (src.getDescription() != null) { route.addProperty("description", src.getDescription()); if (src.getPriority() != null) { route.addProperty("priority", src.getPriority()); if (src.getNextHopIp() != null) { route.addProperty("nextHopIp", src.getNextHopIp()); if (!src.getTags().isEmpty()) {
@Override public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) { RouteOptions options = (RouteOptions) postParams.get("options"); options.name(postParams.get("name").toString()); options.network((URI) postParams.get("network")); return bindToRequest(request, options); }
@Override public JsonElement serialize(RouteOptions src, Type typeOfSrc, JsonSerializationContext context) { JsonObject route = new JsonObject(); if (src.name() != null) { route.addProperty("name", src.name()); if (src.getNetwork() != null) { route.addProperty("network", src.getNetwork().toString()); if (src.getNextHopGateway() != null) { route.addProperty("nextHopGateway", src.getNextHopGateway().toString()); if (src.getNextHopInstance() != null) { route.addProperty("nextHopInstance", src.getNextHopInstance().toString()); if (src.getNextHopNetwork() != null) { route.addProperty("nextHopNetwork", src.getNextHopNetwork().toString()); if (src.getDestRange() != null) { route.addProperty("destRange", src.getDestRange()); if (src.getDescription() != null) { route.addProperty("description", src.getDescription()); if (src.getPriority() != null) { route.addProperty("priority", src.getPriority()); if (src.getNextHopIp() != null) { route.addProperty("nextHopIp", src.getNextHopIp()); if (!src.getTags().isEmpty()) {
/** * {@inheritDoc} */ @Override public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) { RouteOptions options = (RouteOptions) checkNotNull(postParams.get("options"), "routeOptions"); String name = (String) checkNotNull(postParams.get("name"), "name"); URI network = (URI) checkNotNull(postParams.get("network"), "network"); options.name(name); options.network(network); return bindToRequest(request, options); }
@Override public JsonElement serialize(RouteOptions src, Type typeOfSrc, JsonSerializationContext context) { JsonObject route = new JsonObject(); if (src.getName() != null) { route.addProperty("name", src.getName()); if (src.getNetwork() != null) { route.addProperty("network", src.getNetwork().toString()); if (src.getNextHopGateway() != null) { route.addProperty("nextHopGateway", src.getNextHopGateway().toString()); if (src.getNextHopInstance() != null) { route.addProperty("nextHopInstance", src.getNextHopInstance().toString()); if (src.getNextHopNetwork() != null) { route.addProperty("nextHopNetwork", src.getNextHopNetwork().toString()); if (src.getDestRange() != null) { route.addProperty("destRange", src.getDestRange()); if (src.getDescription() != null) { route.addProperty("description", src.getDescription()); if (src.getPriority() != null) { route.addProperty("priority", src.getPriority()); if (src.getNextHopIp() != null) { route.addProperty("nextHopIp", src.getNextHopIp());
/** * {@inheritDoc} */ @Override public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) { RouteOptions options = (RouteOptions) checkNotNull(postParams.get("options"), "routeOptions"); String name = (String) checkNotNull(postParams.get("name"), "name"); URI network = (URI) checkNotNull(postParams.get("network"), "network"); options.name(name); options.network(network); return bindToRequest(request, options); }
@Override public JsonElement serialize(RouteOptions src, Type typeOfSrc, JsonSerializationContext context) { JsonObject route = new JsonObject(); if (src.name() != null) { route.addProperty("name", src.name()); if (src.getNetwork() != null) { route.addProperty("network", src.getNetwork().toString()); if (src.getNextHopGateway() != null) { route.addProperty("nextHopGateway", src.getNextHopGateway().toString()); if (src.getNextHopInstance() != null) { route.addProperty("nextHopInstance", src.getNextHopInstance().toString()); if (src.getNextHopNetwork() != null) { route.addProperty("nextHopNetwork", src.getNextHopNetwork().toString()); if (src.getDestRange() != null) { route.addProperty("destRange", src.getDestRange()); if (src.getDescription() != null) { route.addProperty("description", src.getDescription()); if (src.getPriority() != null) { route.addProperty("priority", src.getPriority()); if (src.getNextHopIp() != null) { route.addProperty("nextHopIp", src.getNextHopIp()); if (!src.getTags().isEmpty()) {