org.wso2.registry.app
Class StackTraceResponseContext

java.lang.Object
  extended by org.apache.abdera.protocol.util.AbstractMessage
      extended by org.apache.abdera.protocol.util.AbstractResponse
          extended by org.apache.abdera.protocol.server.context.AbstractResponseContext
              extended by org.apache.abdera.protocol.server.context.SimpleResponseContext
                  extended by org.wso2.registry.app.StackTraceResponseContext
All Implemented Interfaces:
org.apache.abdera.protocol.Message, org.apache.abdera.protocol.Response, org.apache.abdera.protocol.server.ResponseContext, org.apache.abdera.protocol.util.ProtocolConstants

public class StackTraceResponseContext
extends org.apache.abdera.protocol.server.context.SimpleResponseContext


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.abdera.protocol.Response
org.apache.abdera.protocol.Response.ResponseType
 
Field Summary
static boolean emitStackTraces
          Set this to false to squelch stack traces
 
Fields inherited from class org.apache.abdera.protocol.server.context.SimpleResponseContext
encoding
 
Fields inherited from class org.apache.abdera.protocol.server.context.AbstractResponseContext
EMPTY, headers, status, status_text, writer
 
Fields inherited from class org.apache.abdera.protocol.util.AbstractResponse
nocache_headers, private_headers, smax_age
 
Fields inherited from class org.apache.abdera.protocol.util.AbstractMessage
flags, max_age
 
Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE
 
Constructor Summary
StackTraceResponseContext(java.lang.Exception e)
           
 
Method Summary
 boolean hasEntity()
           
protected  void writeEntity(java.io.Writer writer)
          Write either the full stack trace or just the Exception message, depending on config
 
Methods inherited from class org.apache.abdera.protocol.server.context.SimpleResponseContext
getEncoding, setEncoding, writeTo, writeTo, writeTo, writeTo
 
Methods inherited from class org.apache.abdera.protocol.server.context.AbstractResponseContext
addEncodedHeader, addEncodedHeaders, addHeader, addHeaders, getCacheControl, getDateHeader, getHeader, getHeaderNames, getHeaders, getHeaders, getStatus, getStatusText, removeHeader, setAge, setAllow, setAllow, setContentLanguage, setContentLength, setContentLocation, setContentType, setContentType, setEncodedHeader, setEncodedHeader, setEntityTag, setEntityTag, setEscapedHeader, setExpires, setHeader, setHeader, setLastModified, setLocation, setSlug, setStatus, setStatusText, setWriter
 
Methods inherited from class org.apache.abdera.protocol.util.AbstractResponse
getAge, getAllow, getContentLength, getEntityTag, getExpires, getLastModified, getLocation, getNoCacheHeaders, getPrivateHeaders, getSMaxAge, getType, isMustRevalidate, isPrivate, isProxyRevalidate, isPublic, setMaxAge, setMustRevalidate, setNoCache, setNoCacheHeaders, setNoStore, setNoTransform, setPrivate, setPrivateHeaders, setProxyRevalidate, setPublic
 
Methods inherited from class org.apache.abdera.protocol.util.AbstractMessage
check, getContentLanguage, getContentLocation, getContentType, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform, toggle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.abdera.protocol.Response
getAge, getAllow, getContentLength, getEntityTag, getExpires, getLastModified, getLocation, getNoCacheHeaders, getPrivateHeaders, getSMaxAge, getType, isMustRevalidate, isPrivate, isProxyRevalidate, isPublic
 
Methods inherited from interface org.apache.abdera.protocol.Message
getContentLanguage, getContentLocation, getContentType, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform
 

Field Detail

emitStackTraces

public static boolean emitStackTraces
Set this to false to squelch stack traces

Constructor Detail

StackTraceResponseContext

public StackTraceResponseContext(java.lang.Exception e)
Method Detail

writeEntity

protected void writeEntity(java.io.Writer writer)
                    throws java.io.IOException
Write either the full stack trace or just the Exception message, depending on config

Specified by:
writeEntity in class org.apache.abdera.protocol.server.context.SimpleResponseContext
Parameters:
writer - the Writer connected to the HTTP response
Throws:
java.io.IOException

hasEntity

public boolean hasEntity()


Copyright © 2007 Apache Web Services Project. All Rights Reserved.