You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
common-smartgears/src/main/java/org/gcube/smartgears/extensions/resource/ProfileResource.java

42 lines
1.1 KiB
Java

package org.gcube.smartgears.extensions.resource;
import static org.gcube.smartgears.Constants.application_xml;
import static org.gcube.smartgears.extensions.HttpExtension.Method.GET;
import java.io.IOException;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.gcube.smartgears.extensions.ApiResource;
import org.gcube.smartgears.extensions.ApiSignature;
/**
* An {@link ApiResource} of {@link RemoteResource} at {@link #mapping}.
*
* @author Fabio Simeoni
*
*/
public class ProfileResource extends ApiResource {
private static final long serialVersionUID = 1L;
public static final String mapping = "/profile";
private static final ApiSignature signature = handles(mapping).with(method(GET).produces(application_xml));
ProfileResource() {
super(signature);
}
@Override
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//Resources.marshal(context().profile(),resp.getWriter());
//TODO: return something to show
}
}