public class HttpAction extends Object
SPARQL_ServletBase.executeLifecycle(HttpAction) method.| Modifier and Type | Field and Description |
|---|---|
DatasetRef |
dsRef |
long |
id |
javax.servlet.http.HttpServletRequest |
request |
HttpServletResponseTracker |
response |
ServiceRef |
srvRef |
boolean |
verbose |
| Constructor and Description |
|---|
HttpAction(long id,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean verbose)
Creates a new HTTP Action, using the HTTP request and response, and a given ID.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
beginRead() |
void |
beginWrite() |
void |
commit() |
static MediaType |
contentNegotationQuads(HttpAction action) |
static MediaType |
contentNegotationRDF(HttpAction action) |
void |
endRead() |
void |
endWrite() |
DatasetGraph |
getActiveDSG() |
DatasetRef |
getDatasetRef() |
javax.servlet.http.HttpServletRequest |
getRequest() |
HttpServletResponseTracker |
getResponse() |
long |
getTime()
Return the recorded time taken in milliseconds.
|
boolean |
isTransactional()
Returns whether or not the underlying DatasetGraph is fully transactional (supports rollback).
|
void |
minimize()
Reduce to a size that can be kept around for sometime
|
void |
setDataset(DatasetRef desc)
Sets the action dataset.
|
void |
setFinishTime() |
void |
setService(ServiceRef srvRef)
Sets the
ServiceRef. |
void |
setStartTime() |
void |
sync() |
public final long id
public final boolean verbose
public DatasetRef dsRef
public ServiceRef srvRef
public javax.servlet.http.HttpServletRequest request
public HttpServletResponseTracker response
public HttpAction(long id,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean verbose)
id - given IDrequest - HTTP requestresponse - HTTP responseverbose - verbose flagpublic void setDataset(DatasetRef desc)
Sets the action dataset. Setting a DatasetRef will replace any existing DatasetRef, as well as
as the DatasetGraph of the current HTTP Action.
Once it has updated its members, the HTTP Action will change its transactional state and
Transactional instance according to its base dataset graph.
desc - DatasetRefTransactional,
DatasetGraphWrapperpublic void setService(ServiceRef srvRef)
ServiceRef.srvRef - a ServiceRefpublic boolean isTransactional()
true if the underlying DatasetGraph is fully transactional (supports rollback),
false otherwise.public void beginRead()
public void endRead()
public void beginWrite()
public void commit()
public void abort()
public void endWrite()
public final DatasetGraph getActiveDSG()
public final DatasetRef getDatasetRef()
public void minimize()
public void setStartTime()
public void setFinishTime()
public javax.servlet.http.HttpServletRequest getRequest()
public HttpServletResponseTracker getResponse()
public long getTime()
public void sync()
public static MediaType contentNegotationRDF(HttpAction action)
public static MediaType contentNegotationQuads(HttpAction action)
Licenced under the Apache License, Version 2.0