Class Request
- java.lang.Object
-
- com.lucidworks.apollo.pipeline.query.Request
-
public class Request extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description MultivaluedMap<java.lang.String,java.lang.String>
headers
-
Constructor Summary
Constructors Constructor Description Request(MultivaluedMap<java.lang.String,java.lang.String> queryParams, MultivaluedMap<java.lang.String,java.lang.String> headers, java.lang.String httpMethod)
Request(MultivaluedMap<java.lang.String,java.lang.String> queryParams, MultivaluedMap<java.lang.String,java.lang.String> headers, java.lang.String httpMethod, byte[] entityBytes, MediaType entityMediaType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParam(java.lang.String param, java.lang.String value)
void
clearParams()
MultivaluedMap<java.lang.String,java.lang.String>
copyOfParams()
static Request
create(MultivaluedHashMap initialParams, MultivaluedHashMap headers, MultivaluedHashMap mutableParams, java.lang.String httpMethod, byte[] entityBytes, MediaType entityMediaType)
byte[]
getEntityBytes()
MediaType
getEntityMediaType()
java.lang.String
getFirstFieldValue(java.lang.String param)
java.lang.String
getFirstParam(java.lang.String param)
MultivaluedMap<java.lang.String,java.lang.String>
getHeaders()
java.lang.String
getHttpMethod()
MultivaluedMap<java.lang.String,java.lang.String>
getInitialParams()
java.util.Collection<java.lang.String>
getParam(java.lang.String param)
MultivaluedMap<java.lang.String,java.lang.String>
getParams()
boolean
hasParam(java.lang.String param)
void
putAll(MultivaluedMap<java.lang.String,java.lang.String> params)
void
putParams(java.lang.String param, java.util.List<java.lang.String> values)
void
putSingleParam(java.lang.String param, java.lang.String value)
void
putSingleParamIfAbsent(java.lang.String param, java.lang.String value)
java.util.Collection<java.lang.String>
removeParam(java.lang.String param)
-
-
-
Field Detail
-
headers
public final MultivaluedMap<java.lang.String,java.lang.String> headers
-
-
Constructor Detail
-
Request
public Request(MultivaluedMap<java.lang.String,java.lang.String> queryParams, MultivaluedMap<java.lang.String,java.lang.String> headers, java.lang.String httpMethod)
-
Request
public Request(MultivaluedMap<java.lang.String,java.lang.String> queryParams, MultivaluedMap<java.lang.String,java.lang.String> headers, java.lang.String httpMethod, byte[] entityBytes, MediaType entityMediaType)
-
-
Method Detail
-
create
public static Request create(MultivaluedHashMap initialParams, MultivaluedHashMap headers, MultivaluedHashMap mutableParams, java.lang.String httpMethod, byte[] entityBytes, MediaType entityMediaType)
-
addParam
public void addParam(java.lang.String param, java.lang.String value)
-
putSingleParam
public void putSingleParam(java.lang.String param, java.lang.String value)
-
putSingleParamIfAbsent
public void putSingleParamIfAbsent(java.lang.String param, java.lang.String value)
-
putParams
public void putParams(java.lang.String param, java.util.List<java.lang.String> values)
-
putAll
public void putAll(MultivaluedMap<java.lang.String,java.lang.String> params)
-
clearParams
public void clearParams()
-
hasParam
public boolean hasParam(java.lang.String param)
-
getParam
public java.util.Collection<java.lang.String> getParam(java.lang.String param)
-
getFirstParam
public java.lang.String getFirstParam(java.lang.String param)
-
removeParam
public java.util.Collection<java.lang.String> removeParam(java.lang.String param)
-
getFirstFieldValue
public java.lang.String getFirstFieldValue(java.lang.String param)
-
getParams
public MultivaluedMap<java.lang.String,java.lang.String> getParams()
-
copyOfParams
public MultivaluedMap<java.lang.String,java.lang.String> copyOfParams()
-
getHttpMethod
public java.lang.String getHttpMethod()
-
getInitialParams
public MultivaluedMap<java.lang.String,java.lang.String> getInitialParams()
-
getEntityBytes
public byte[] getEntityBytes()
-
getEntityMediaType
public MediaType getEntityMediaType()
-
getHeaders
public MultivaluedMap<java.lang.String,java.lang.String> getHeaders()
-
-