All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.inteligr8.solr.model.JsonFormattedResponseRequest Maven / Gradle / Ivy

package com.inteligr8.solr.model;

import jakarta.annotation.Nonnull;
import jakarta.ws.rs.DefaultValue;
import jakarta.ws.rs.QueryParam;

public class JsonFormattedResponseRequest> {
	
	private static final String FORMAT = "json";
	
	@QueryParam("wt")
	@DefaultValue(FORMAT)
	@Nonnull
	public String responseType = FORMAT;
	
	public String getResponseType() {
		return responseType;
	}
	
	public void setResponseType(String responseType) {
		this.responseType = responseType;
	}
	
	public T withResponseType(String responseType) {
		this.responseType = responseType;
		return this.getThis();
	}
	
	@SuppressWarnings("unchecked")
	protected T getThis() {
		T t = (T) this;
		return t;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy