@Path(value="/{galleryResourceType}/") public class BaseImageSetContentResource extends AbstractContentResource
HST_MOUNT_REL_PREFIX, HST_REST_RELATIONS_BASE_URI, MOUNT_ALIAS_ASSETS, MOUNT_ALIAS_GALLERY, MOUNT_ALIAS_REST, MOUNT_ALIAS_SITE
Constructor and Description |
---|
BaseImageSetContentResource() |
Modifier and Type | Method and Description |
---|---|
HstCache |
getBinariesCache() |
HippoGalleryImageRepresentation |
getImageResource(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse,
javax.ws.rs.core.UriInfo uriInfo,
String imageName,
String subPath) |
javax.ws.rs.core.Response |
getImageResourceContent(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse,
javax.ws.rs.core.UriInfo uriInfo,
String imageName) |
HippoGalleryImageSetRepresentation |
getImageSetResource(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse,
javax.ws.rs.core.UriInfo uriInfo) |
void |
setBinariesCache(HstCache binariesCache) |
String |
updateImageResourceContent(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse,
javax.ws.rs.core.UriInfo uriInfo,
String imageName,
String mimeType,
InputStream childResourceContentStream) |
String |
updateImageResourceContentByAttachments(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse,
javax.ws.rs.core.UriInfo uriInfo,
String imageName,
String mimeType,
List<org.apache.cxf.jaxrs.ext.multipart.Attachment> attachments) |
deleteContentResource, getHippoHtmlContent, getHippoHtmlRepresentation, getRequestContentPath, getResolvedContentRewriter, updateHippoHtmlContent, updateHippoHtmlRepresentation
deleteHippoBean, getAnnotatedClasses, getAnnotatedClassesResourcePath, getChildBeanByRelPathOrPrimaryNodeType, getContentRewriter, getHstQualifiedLinkRel, getHstQueryManager, getHstQueryManager, getLinkMountRelation, getMountContentBaseBean, getMountLink, getNodeLink, getObjectConverter, getPersistableSession, getPersistableSession, getPersistenceManager, getPersistenceManager, getQualifiedLinkRel, getQualifiedLinkRel, getRequestContentBean, getRequestContentBean, getRequestContext, getRestLink, getRestRelationsBaseUri, getSiteLink, isPageLinksExternal, setAnnotatedClasses, setAnnotatedClassesResourcePath, setContentRewriter, setHstQueryManagerFactory, setObjectConverter, setPageLinksExternal, setRestRelationsBaseUri
public HstCache getBinariesCache()
public void setBinariesCache(HstCache binariesCache)
@GET @Path(value="/") public HippoGalleryImageSetRepresentation getImageSetResource(@Context javax.servlet.http.HttpServletRequest servletRequest, @Context javax.servlet.http.HttpServletResponse servletResponse, @Context javax.ws.rs.core.UriInfo uriInfo)
@GET @Path(value="/image/{imageName}/") public HippoGalleryImageRepresentation getImageResource(@Context javax.servlet.http.HttpServletRequest servletRequest, @Context javax.servlet.http.HttpServletResponse servletResponse, @Context javax.ws.rs.core.UriInfo uriInfo, @PathParam(value="imageName") String imageName, @MatrixParam(value="subpath") String subPath)
@GET @Path(value="/image/{imageName}/content") public javax.ws.rs.core.Response getImageResourceContent(@Context javax.servlet.http.HttpServletRequest servletRequest, @Context javax.servlet.http.HttpServletResponse servletResponse, @Context javax.ws.rs.core.UriInfo uriInfo, @PathParam(value="imageName") String imageName)
@PUT @Path(value="/image/{imageName}/content") public String updateImageResourceContent(@Context javax.servlet.http.HttpServletRequest servletRequest, @Context javax.servlet.http.HttpServletResponse servletResponse, @Context javax.ws.rs.core.UriInfo uriInfo, @PathParam(value="imageName") String imageName, @MatrixParam(value="mimetype") @DefaultValue(value="application/octet-stream") String mimeType, InputStream childResourceContentStream)
@POST @Path(value="/image/{imageName}/content") @Consumes(value="multipart/form-data") public String updateImageResourceContentByAttachments(@Context javax.servlet.http.HttpServletRequest servletRequest, @Context javax.servlet.http.HttpServletResponse servletResponse, @Context javax.ws.rs.core.UriInfo uriInfo, @PathParam(value="imageName") String imageName, @MatrixParam(value="mimetype") @DefaultValue(value="application/octet-stream") String mimeType, List<org.apache.cxf.jaxrs.ext.multipart.Attachment> attachments)
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.