org.fcrepo.server.rest
Class DescribeRepositoryResource.ReposInfoSerializer

java.lang.Object
  extended by org.fcrepo.server.rest.DescribeRepositoryResource.ReposInfoSerializer
All Implemented Interfaces:
javax.ws.rs.core.StreamingOutput
Enclosing class:
DescribeRepositoryResource

public class DescribeRepositoryResource.ReposInfoSerializer
extends Object
implements javax.ws.rs.core.StreamingOutput

Serializes RepositoryInfo object into XML.


Constructor Summary
DescribeRepositoryResource.ReposInfoSerializer(Context context, RepositoryInfo repositoryInfo)
           Constructor for ReposInfoSerializerThread.
 
Method Summary
 void write(OutputStream output)
           This method executes the thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescribeRepositoryResource.ReposInfoSerializer

public DescribeRepositoryResource.ReposInfoSerializer(Context context,
                                                      RepositoryInfo repositoryInfo)

Constructor for ReposInfoSerializerThread.

Parameters:
repositoryInfo - A repository info data structure.
pw - A PipedWriter to which the serialization info is written.
Method Detail

write

public void write(OutputStream output)
           throws IOException

This method executes the thread.

Specified by:
write in interface javax.ws.rs.core.StreamingOutput
Throws:
IOException


Copyright © 2012 DuraSpace. All Rights Reserved.