org.openrdf.http.object.model
Class ResourceRequest
java.lang.Object
org.openrdf.http.object.model.EditableHttpEntityEnclosingRequest
org.openrdf.http.object.model.Request
org.openrdf.http.object.model.ResourceRequest
- All Implemented Interfaces:
- Cloneable, org.apache.http.HttpEntityEnclosingRequest, org.apache.http.HttpMessage, org.apache.http.HttpRequest
- Direct Known Subclasses:
- ResourceOperation
public class ResourceRequest
- extends Request
Tracks the target resource with the request.
- Author:
- James Leigh
| Methods inherited from class org.openrdf.http.object.model.Request |
clone, close, getAuthority, getCredential, getDateHeader, getHeader, getHeaderEnumeration, getHeaderValues, getIRI, getMaxAge, getMaxStale, getMethod, getMinFresh, getQueryString, getRealm, getReceivedOn, getRemoteAddr, getRequestTarget, getRequestURI, getRequestURL, getResolvedHeader, getURIFromRequestTarget, getURLFromRequestTarget, getX509Certificate, invalidatesCache, isMessageBody, isNoCache, isOnlyIfCache, isSafe, isStorable, parseURI, resolve, setCredential, setIRI, setRealm, setReceivedOn, toString |
| Methods inherited from class org.openrdf.http.object.model.EditableHttpEntityEnclosingRequest |
addHeader, addHeader, containsHeader, expectContinue, getAllHeaders, getEnclosingRequest, getEntity, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, getRequestLine, headerIterator, headerIterator, removeHeader, removeHeaders, setEntity, setHeader, setHeader, setHeaders, setParams, setRequestLine |
ResourceRequest
public ResourceRequest(File dataDir,
Request request,
ObjectRepository repository)
throws QueryEvaluationException,
RepositoryException,
MimeTypeParseException
- Throws:
QueryEvaluationException
RepositoryException
MimeTypeParseException
begin
public void begin()
throws RepositoryException,
QueryEvaluationException,
MimeTypeParseException
- Throws:
RepositoryException
QueryEvaluationException
MimeTypeParseException
getVaryHeader
public String getVaryHeader(String name)
getVaryHeaders
public List<String> getVaryHeaders(String... name)
getVary
public Collection<String> getVary()
createResultEntity
public ResponseEntity createResultEntity(Object result,
Class<?> ctype,
Type gtype,
String[] mimeTypes)
createURI
public URI createURI(String uriSpec)
flush
public void flush()
throws RepositoryException,
QueryEvaluationException,
IOException
- Throws:
RepositoryException
QueryEvaluationException
IOException
rollback
public void rollback()
throws RepositoryException
- Throws:
RepositoryException
commit
public void commit()
throws IOException,
RepositoryException
- Throws:
IOException
RepositoryException
cleanup
public void cleanup()
throws RepositoryException,
IOException
- Description copied from class:
Request
- Request has been fully read and response status is determined.
- Overrides:
cleanup in class Request
- Throws:
RepositoryException
IOException
getBody
public BodyEntity getBody()
throws MimeTypeParseException
- Throws:
MimeTypeParseException
getContentType
public String getContentType(Method method)
throws MimeTypeParseException
- Throws:
MimeTypeParseException
getFile
public File getFile()
getObjectConnection
public ObjectConnection getObjectConnection()
getOperation
public String getOperation()
getHeader
public Entity getHeader(String[] mediaTypes,
String... names)
getParameter
public Entity getParameter(String[] mediaTypes,
String... names)
getQueryString
public Entity getQueryString(String[] mediaTypes)
getRequestedResource
public RDFObject getRequestedResource()
getRevision
public Transaction getRevision()
revision
public String revision()
getAcceptable
public SortedSet<? extends MimeType> getAcceptable()
throws MimeTypeParseException
- Throws:
MimeTypeParseException
isAcceptable
public boolean isAcceptable(Class<?> type,
Type genericType)
throws MimeTypeParseException
- Throws:
MimeTypeParseException
isAcceptable
public boolean isAcceptable(String mediaType)
throws MimeTypeParseException
- Throws:
MimeTypeParseException
isAcceptable
public boolean isAcceptable(String mediaType,
Class<?> type,
Type genericType)
throws MimeTypeParseException
- Throws:
MimeTypeParseException
isQueryStringPresent
public boolean isQueryStringPresent()
Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.