public static class ConfigSetAdminRequest.Upload extends ConfigSetAdminRequest.ConfigSetSpecificAdminRequest<ConfigSetAdminRequest.Upload>
setFilePath(java.lang.String)
is being used.ConfigSetAdminRequest.ConfigSetSpecificAdminRequest<T extends ConfigSetAdminRequest<T,ConfigSetAdminResponse>>, ConfigSetAdminRequest.Create, ConfigSetAdminRequest.Delete, ConfigSetAdminRequest.List, ConfigSetAdminRequest.Upload
SolrRequest.METHOD
Modifier and Type | Field and Description |
---|---|
protected Boolean |
cleanup |
protected String |
filePath |
protected Boolean |
overwrite |
protected ContentStream |
stream |
configSetName
action
SUPPORTED_METHODS, useBinaryV2, usev2
Constructor and Description |
---|
Upload() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getCleanup() |
Collection<ContentStream> |
getContentStreams() |
RequestWriter.ContentWriter |
getContentWriter(String expectedType)
If a request object wants to do a push write, implement this method.
|
String |
getFilePath() |
Boolean |
getOverwrite() |
SolrParams |
getParams() |
protected ConfigSetAdminRequest.Upload |
getThis() |
ConfigSetAdminRequest.Upload |
setCleanup(Boolean cleanup) |
ConfigSetAdminRequest.Upload |
setFilePath(String filePath)
Optional
ConfigSetParams.FILE_PATH to indicate a single file is being uploaded into an existing configset |
ConfigSetAdminRequest.Upload |
setOverwrite(Boolean overwrite) |
ConfigSetAdminRequest.Upload |
setUploadFile(File file,
String contentType)
A convinience method for specifying an existing File to use as the upload data.
|
ConfigSetAdminRequest.Upload |
setUploadStream(ContentStream stream)
Specify the ContentStream to upload.
|
createResponse, getConfigSetName, setConfigSetName
setAction
addHeader, getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getHeaders, getMethod, getPath, getPreferredNodes, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setPreferredNodes, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2
protected ContentStream stream
protected String filePath
protected Boolean overwrite
protected Boolean cleanup
protected ConfigSetAdminRequest.Upload getThis()
getThis
in class ConfigSetAdminRequest<ConfigSetAdminRequest.Upload,ConfigSetAdminResponse>
public final ConfigSetAdminRequest.Upload setFilePath(String filePath)
ConfigSetParams.FILE_PATH
to indicate a single file is being uploaded into an existing configsetpublic final String getFilePath()
setFilePath(java.lang.String)
public final ConfigSetAdminRequest.Upload setUploadFile(File file, String contentType)
setFilePath(java.lang.String)
is being used.public final ConfigSetAdminRequest.Upload setOverwrite(Boolean overwrite)
ConfigSetParams.OVERWRITE
public final Boolean getOverwrite()
setOverwrite(java.lang.Boolean)
public final ConfigSetAdminRequest.Upload setCleanup(Boolean cleanup)
ConfigSetParams.CLEANUP
public final Boolean getCleanup()
setCleanup(java.lang.Boolean)
public final ConfigSetAdminRequest.Upload setUploadStream(ContentStream stream)
setFilePath(java.lang.String)
is being used.public Collection<ContentStream> getContentStreams() throws IOException
getContentStreams
in class SolrRequest<ConfigSetAdminResponse>
IOException
public RequestWriter.ContentWriter getContentWriter(String expectedType)
SolrRequest
getContentWriter
in class SolrRequest<ConfigSetAdminResponse>
expectedType
- This is the type that the RequestWriter would like to get. But, it is OK to send any formatpublic SolrParams getParams()
getParams
in class ConfigSetAdminRequest.ConfigSetSpecificAdminRequest<ConfigSetAdminRequest.Upload>
Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.