this.binaryStore = checkNotNull(binaryStore);
}
@Override
public ViewResponse handle(final HandlerContext context) {
ViewRequest req = context.getRequest();
String binaryPath = ensureLeadingSlash(
req.getPath() + (req.getQueryString() == null ? "" : "?" + req.getQueryString()));
switch (req.getMethod()) {
case PUT:
try {
final RawBinary created = binaryStore.create(binaryPath, req.getContentType(), req.getInputStream());
if (created != null) {
return Responses.created();
}
else {