com.github.dynamicextensionsalfresco.webscripts.arguments.ContentArgumentResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annotations-runtime Show documentation
Show all versions of annotations-runtime Show documentation
Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features
package com.github.dynamicextensionsalfresco.webscripts.arguments;
import org.springframework.extensions.surf.util.Content;
import org.springframework.extensions.webscripts.WebScriptRequest;
import org.springframework.extensions.webscripts.WebScriptResponse;
/**
* {@link ArgumentResolver} for {@link Content} from {@link WebScriptRequest}s.
*
* @author Laurens Fridael
*
*/
public class ContentArgumentResolver extends AbstractTypeBasedArgumentResolver {
@Override
protected Class> getExpectedArgumentType() {
return Content.class;
}
@Override
protected Content resolveArgument(final WebScriptRequest request, final WebScriptResponse response) {
return request.getContent();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy