public class CgiRequest extends AbstractPlatformMessage
Modifier and Type | Field and Description |
---|---|
static String |
CLIENTID_PARAM
CGI parameter to specify any workflows
|
static String |
OUTPUT_FORMAT_PARAM
CGI parameter, specifies the output format
|
static String |
WORKFLOWS_PARAM
CGI parameter to specify any workflows
|
DEFAULT_MAX_LOG_LENGTH, MESSAGE_DROPPED, MESSAGE_SEND_TIME_PROP, PROP_MAX_LOG_LENGTH
Constructor and Description |
---|
CgiRequest(UUID clientID)
Constructor with client ID.
|
Modifier and Type | Method and Description |
---|---|
static CgiRequest |
create(QueryRequest qreq)
Creates a CgiRequest from a QueryRequest.
|
boolean |
equals(Object other) |
UUID |
getCgiClientId()
Gets the CGI Client ID.
|
String |
getCgiParameter(String key)
Get the first value for a CGI Parameter.
|
double |
getCgiParameter(String parameter,
double defaultValue)
Get the first value for a CGI Parameter as a
double . |
float |
getCgiParameter(String parameter,
float defaultValue)
Get the first value for a CGI Parameter as a
float . |
int |
getCgiParameter(String parameter,
int defaultValue)
Get the first value for a CGI Parameter as an
int . |
long |
getCgiParameter(String parameter,
long defaultValue)
Get the first value for a CGI Parameter as a
long . |
String |
getCgiParameter(String parameter,
String defaultValue)
Get the first value for a CGI Parameter.
|
Map<String,String[]> |
getCgiParameters()
Gets CGI parameters map.
|
WorkflowQueue |
getCgiWorkflowQueue()
Gets the workflow queue parsed from the CGI parameters.
|
WorkflowQueue |
getCgiWorkflows(String parameter)
Parse a parameter that contains a list of workflows.
|
Map<String,String> |
getHttpHeaders()
Gets HTTP headers.
|
InputStream |
getInputStream()
Get the InputStream associated with the request.
|
String |
getMethod()
Gets the HTTP method from the request.
|
String |
getQueryString()
Turn the CGI request into a url encoded parseable query string
|
int |
hashCode() |
void |
setCgiClientId(UUID value)
Force set the CGI Client ID.
|
void |
setCgiParameter(String parameter,
String... values)
Set a value for a CGI parameter.
|
void |
setCgiParameters(Map<String,String[]> cgiParameters)
Sets CGI parameters.
|
void |
setCgiParameters(String query,
String encoding)
Parse CGI query string and set parameters based on the results.
|
void |
setCgiWorkflowQueue(WorkflowQueue workflowQueue)
Force set the CGI workflow queue.
|
void |
setCgiWorkflows(String parameter,
WorkflowQueue workflowQueue)
Set the CGI workflows from a workflow queue
|
void |
setHttpHeaders(Map<String,String> httpHeaders)
Set HTTP headers map.
|
void |
setInputStream(InputStream inputStream)
Sets the InputStream associated with the request.
|
void |
setMethod(String method)
Sets the HTTP method from teh request.
|
String |
toString() |
addMessageHistory, addMessageHistory, clone, getClientId, getEstimatedSize, getMessageHistory, getMessageId, getMetadata, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getWorkflowQueue, getWorkflowQueue, hasProperty, isRedelivered, removeProperty, removeWorkflowQueue, setClientId, setMessageId, setProperty, setRedelivered, setWorkflowQueue, setWorkflowQueue, toMessageString, toString, toString, toString, toString, toString, toString, toString, toString, toString
public static final String OUTPUT_FORMAT_PARAM
public static final String WORKFLOWS_PARAM
public static final String CLIENTID_PARAM
public CgiRequest(UUID clientID)
clientID
- clientIDpublic void setCgiParameters(String query, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingException
public String getQueryString()
public String toString()
toString
in class AbstractPlatformMessage
public void setCgiParameters(Map<String,String[]> cgiParameters)
public InputStream getInputStream()
public void setInputStream(InputStream inputStream) throws IOException
IOException
public String getMethod()
public void setMethod(String method)
public WorkflowQueue getCgiWorkflowQueue()
public void setCgiWorkflowQueue(WorkflowQueue workflowQueue)
public UUID getCgiClientId()
public void setCgiClientId(UUID value)
public void setCgiParameter(String parameter, String... values)
public String getCgiParameter(String parameter, String defaultValue)
public int getCgiParameter(String parameter, int defaultValue)
int
.public long getCgiParameter(String parameter, long defaultValue)
long
.public float getCgiParameter(String parameter, float defaultValue)
float
.public double getCgiParameter(String parameter, double defaultValue)
double
.public WorkflowQueue getCgiWorkflows(String parameter)
public void setCgiWorkflows(String parameter, WorkflowQueue workflowQueue)
public int hashCode()
hashCode
in class AbstractPlatformMessage
public boolean equals(Object other)
equals
in class AbstractPlatformMessage
public static CgiRequest create(QueryRequest qreq)
QueryRequest
create method.
Not all queries and filters are guaranteed to have equivalent parseable string
representations; this method cannot guarantee an equivalent CGI Request
for such cases.Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.