Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.englishtown.vertx.solr;
 
Vert.x service query options
 
public class QueryOptions {
    private String core;
    private String basicAuthUser;
    private String basicAuthPass;
    public static final String JSON_FIELD_CORE = "core";
    public static final String JSON_FIELD_BASIC_AUTH_USER = "basic_auth_user";
    public static final String JSON_FIELD_BASIC_AUTH_PASS = "basic_auth_pass";
    public QueryOptions() {
    }
    public QueryOptions(QueryOptions other) {
        this. = other.getCore();
        this. = other.getBasicAuthUser();
        this. = other.getBasicAuthPass();
    }
    public QueryOptions(JsonObject json) {
        this. = json.getString();
        this. = json.getString();
        this. = json.getString();
    }
    public String getCore() {
        return ;
    }
    public QueryOptions setCore(String core) {
        this. = core;
        return this;
    }
    public String getBasicAuthUser() {
        return ;
    }
    public QueryOptions setBasicAuthUser(String basicAuthUser) {
        this. = basicAuthUser;
        return this;
    }
    public String getBasicAuthPass() {
        return ;
    }
    public QueryOptions setBasicAuthPass(String basicAuthPass) {
        this. = basicAuthPass;
        return this;
    }
    public JsonObject toJson() {
        return new JsonObject()
                .put(getCore())
                .put(getBasicAuthUser())
                .put(getBasicAuthPass());
    }
New to GrepCode? Check out our FAQ X