com.faunos.skwish.ext.http
Class SkwishResponseFactory

java.lang.Object
  extended by com.faunos.util.net.http.AbstractResponseFactory
      extended by com.faunos.skwish.ext.http.SkwishResponseFactory
All Implemented Interfaces:
ResponseFactory
Direct Known Subclasses:
MappedSkwishResponseFactory

public class SkwishResponseFactory
extends AbstractResponseFactory

The skwish HTTP application.

Author:
Babak Farhang

Field Summary
protected static Map<String,ImmutableBuffer> propertyValues
          Used to retrieve common content-type value headers.
 
Constructor Summary
SkwishResponseFactory(Provider skwishProvider)
          Creates a new instance with the given skwish provider.
 
Method Summary
protected  Stagelet prepareResponseImpl(RequestHeader request, StageletStack stack)
          Returns the skwish response.
 
Methods inherited from class com.faunos.util.net.http.AbstractResponseFactory
badRequest, getResponse, notFound, urlDecode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyValues

protected static final Map<String,ImmutableBuffer> propertyValues
Used to retrieve common content-type value headers.

Constructor Detail

SkwishResponseFactory

public SkwishResponseFactory(Provider skwishProvider)
Creates a new instance with the given skwish provider. This is typically a mapped provider, not the default instance. (The default instance is a security risk since it exposes any segment store on the file system to an HTTP client.)

See Also:
MappedUriProvider
Method Detail

prepareResponseImpl

protected Stagelet prepareResponseImpl(RequestHeader request,
                                       StageletStack stack)
Returns the skwish response.

Specified by:
prepareResponseImpl in class AbstractResponseFactory
See Also:
QueryStringConsts


SourceForge.net Logo