org.openrdf.server.metadata.http
Class Response
java.lang.Object
org.openrdf.server.metadata.http.Response
public class Response
- extends Object
Builds an HTTP response.
- Author:
- James Leigh
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Response
public Response()
badRequest
public Response badRequest()
badRequest
public Response badRequest(Exception e)
client
public Response client(Exception error)
entity
public Response entity(File entity)
entity
public Response entity(Object entity)
getLastModified
public Long getLastModified()
getEntity
public Object getEntity()
getEntityType
public Class<?> getEntityType()
setEntityType
public void setEntityType(Class<?> type)
getHeaderNames
public Set<String> getHeaderNames()
throws MimeTypeParseException
- Throws:
MimeTypeParseException
getHeader
public String getHeader(String header)
getStatus
public int getStatus()
head
public Response head()
header
public Response header(String header,
String value)
isHead
public boolean isHead()
isNoContent
public boolean isNoContent()
isOk
public boolean isOk()
lastModified
public Response lastModified(long lastModified)
location
public Response location(String location)
noContent
public Response noContent()
notFound
public Response notFound()
notModified
public Response notModified()
preconditionFailed
public Response preconditionFailed()
server
public Response server(Exception error)
status
public Response status(int status)
conflict
public Response conflict(ConcurrencyException e)
Copyright © 2004-2009 James Leigh Services Inc.. All Rights Reserved.