org.apache.abdera.server.exceptions
Class AbderaServerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.abdera.server.exceptions.AbderaServerException
- All Implemented Interfaces:
- java.io.Serializable, ResponseContext
- Direct Known Subclasses:
- MethodNotAllowedException, NotFoundException
public class AbderaServerException
- extends java.lang.Exception
- implements ResponseContext
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbderaServerException
public AbderaServerException(int status,
java.lang.String text)
getStatus
public int getStatus()
- Specified by:
getStatus
in interface ResponseContext
getStatusText
public java.lang.String getStatusText()
- Specified by:
getStatusText
in interface ResponseContext
getLastModified
public java.util.Date getLastModified()
- Specified by:
getLastModified
in interface ResponseContext
getEntityTag
public java.lang.String getEntityTag()
- Specified by:
getEntityTag
in interface ResponseContext
getContentLanguage
public java.lang.String getContentLanguage()
- Specified by:
getContentLanguage
in interface ResponseContext
getContentLocation
public java.net.URI getContentLocation()
- Specified by:
getContentLocation
in interface ResponseContext
getContentType
public javax.activation.MimeType getContentType()
- Specified by:
getContentType
in interface ResponseContext
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interface ResponseContext
getLocation
public java.net.URI getLocation()
- Specified by:
getLocation
in interface ResponseContext
writeTo
public void writeTo(java.io.OutputStream out)
throws java.io.IOException
- Specified by:
writeTo
in interface ResponseContext
- Throws:
java.io.IOException
getCachePolicy
public CachePolicy getCachePolicy()
- Specified by:
getCachePolicy
in interface ResponseContext
hasEntity
public boolean hasEntity()
- Specified by:
hasEntity
in interface ResponseContext
addHeader
public void addHeader(java.lang.String name,
int value)
- Specified by:
addHeader
in interface ResponseContext
addHeader
public void addHeader(java.lang.String name,
java.lang.String value)
- Specified by:
addHeader
in interface ResponseContext
getHeaders
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
- Specified by:
getHeaders
in interface ResponseContext
setHeader
public void setHeader(java.lang.String name,
int value)
- Specified by:
setHeader
in interface ResponseContext
setHeader
public void setHeader(java.lang.String name,
java.lang.String value)
- Specified by:
setHeader
in interface ResponseContext