package de.jeha.s3srv.jaxb;

import de.jeha.s3srv.api.ErrorResponse;
import de.jeha.s3srv.api.ListAllMyBucketsResponse;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;

/**
 * @author jenshadlich@googlemail.com
 */
class JaxbContextHolder {

    private static JAXBContext JAXB_CONTEXT = null;

    static {
        try {
            JAXB_CONTEXT = JAXBContext.newInstance(
                    ErrorResponse.class,
                    ListAllMyBucketsResponse.class
            );
        } catch (JAXBException e) {
            throw new RuntimeException("Unable to initialize JAXB Context", e);
        }
    }

    public static JAXBContext getContext() {
        return JAXB_CONTEXT;
    }

}

@@ -112,16 +112,59 @@
 esponse;
+%0Aimport de.jeha.s3srv.api.ListBucketResult;
 %0A%0Aimport
@@ -526,16 +526,60 @@
 se.class
+,%0A                    ListBucketResult.class
 %0A       

add ListBucketResult