package org.jboss.resteasy.test.util.resource;

import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.ext.ExceptionMapper;
import jakarta.ws.rs.ext.ParamConverter;

import org.jboss.resteasy.spi.MarshalledEntity;

public class TypesTestProvider
        implements ExceptionMapper<NullPointerException>, MarshalledEntity<Integer>, ParamConverter<TypesParamConverterPOJO> {

    public Response toResponse(NullPointerException exception) {
        return null;
    }

    @Override
    public byte[] getMarshalledBytes() {
        return null;
    }

    @Override
    public Integer getEntity() {
        return null;
    }

    @Override
    public TypesParamConverterPOJO fromString(String str) {
        TypesParamConverterPOJO pojo = new TypesParamConverterPOJO();
        pojo.setName(str);
        return pojo;
    }

    @Override
    public String toString(TypesParamConverterPOJO value) {
        return value.getName();
    }
}
