cfa.vo.iris.interop
Class SedServerResource
java.lang.Object
cfa.vo.iris.interop.SedServerResource
- All Implemented Interfaces:
- org.astrogrid.samp.httpd.ServerResource
public class SedServerResource
- extends Object
- implements org.astrogrid.samp.httpd.ServerResource
This class implements a ServerResource that serves Sed document in the VOTable format.
Once instantiated this class can be passed to a SAMPController instance using
the
- Author:
- olaurino
Constructor Summary |
SedServerResource(cfa.vo.sedlib.Sed sed)
The constructor simply needs a Sed object: it will be serialized using
SedLib and then served by an internal HTTP Server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SedServerResource
public SedServerResource(cfa.vo.sedlib.Sed sed)
- The constructor simply needs a Sed object: it will be serialized using
SedLib and then served by an internal HTTP Server.
- Parameters:
sed
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interface org.astrogrid.samp.httpd.ServerResource
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interface org.astrogrid.samp.httpd.ServerResource
writeBody
public void writeBody(OutputStream out)
throws IOException
- Specified by:
writeBody
in interface org.astrogrid.samp.httpd.ServerResource
- Throws:
IOException
Copyright © 2013. All rights reserved.