com.ldodds.foafamatic.http
Class DumpRDFHandler

java.lang.Object
  |
  +--com.ldodds.foafamatic.save.Generator
        |
        +--com.ldodds.foafamatic.http.DumpRDFHandler
All Implemented Interfaces:
Responder

public class DumpRDFHandler
extends Generator
implements Responder

Author:
ldodds

Field Summary
 
Fields inherited from class com.ldodds.foafamatic.save.Generator
_thinlet, ADMIN_AGENT, ADMIN_ERRORS, ADMIN_URI
 
Constructor Summary
DumpRDFHandler()
          Constructor for DumpRDFHandler.
 
Method Summary
 boolean canRespond(java.lang.String path)
           
protected  void doGeneration()
           
 java.lang.String getMimeType()
           
 byte[] respond(java.lang.String path, java.util.Map parameters)
          Called by the HTTP Server to ask the object to handle the HTTP request.
 
Methods inherited from class com.ldodds.foafamatic.save.Generator
generate, getFOAFString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DumpRDFHandler

public DumpRDFHandler()
Constructor for DumpRDFHandler.

Method Detail

doGeneration

protected void doGeneration()
Specified by:
doGeneration in class Generator
See Also:
Generator.doGeneration()

respond

public byte[] respond(java.lang.String path,
                      java.util.Map parameters)
               throws java.io.IOException
Description copied from interface: Responder
Called by the HTTP Server to ask the object to handle the HTTP request. The only context information provided is the path info and the URL parameters. No details of the user agent, etc. are provided.

Specified by:
respond in interface Responder
Parameters:
path - the path-info
parameters - the url parameters
Returns:
a byte array containing the response.
Throws:
java.io.IOException - if there were a problem handling the request, server will generate an HTTP 500 response containing the exception message
See Also:
com.ldodds.foafamatic.http.RequestHandler#handle(String, Map)

getMimeType

public java.lang.String getMimeType()
Specified by:
getMimeType in interface Responder
See Also:
com.ldodds.foafamatic.http.RequestHandler#getMimeType()

canRespond

public boolean canRespond(java.lang.String path)
Specified by:
canRespond in interface Responder
See Also:
com.ldodds.foafamatic.http.RequestHandler#canHandle(String)