protected StorageItem retrieveVirtualPath( ResourceStoreRequest request, RequestRoute route ) throws ItemNotFoundException { ResourceStoreRequest req = new ResourceStoreRequest( route.getOriginalRequestPath() ); DefaultStorageCollectionItem result = new DefaultStorageCollectionItem( this, req, true, false ); result.getItemContext().putAll( request.getRequestContext() ); return result; }
httpItem.setModified( makeDateFromHeader( httpResponse.getFirstHeader( "last-modified" ) ) ); httpItem.setCreated( httpItem.getModified() ); httpItem.getItemContext().putAll( request.getRequestContext() );
public Collection<StorageItem> list( boolean fromTask, StorageCollectionItem coll ) throws IllegalOperationException, ItemNotFoundException, StorageException { if ( getLogger().isDebugEnabled() ) { getLogger().debug( getId() + ".list() :: " + coll.getRepositoryItemUid().toString() ); } if ( !getLocalStatus().shouldServiceRequest() ) { throw new RepositoryNotAvailableException( this ); } maintainNotFoundCache( coll.getResourceStoreRequest() ); Collection<StorageItem> items = doListItems( new ResourceStoreRequest( coll ) ); for ( StorageItem item : items ) { item.getItemContext().putAll( coll.getItemContext() ); } return items; }
request.getRequestContext().putAll( item.getItemContext() );
@Override protected StorageLinkItem createLink( final StorageItem item ) throws UnsupportedStorageOperationException, IllegalOperationException, StorageException { String shadowPath = null; shadowPath = transformMaster2Shadow( item.getPath() ); if ( shadowPath != null ) { ResourceStoreRequest req = new ResourceStoreRequest( shadowPath ); req.getRequestContext().putAll( item.getItemContext() ); DefaultStorageLinkItem link = new DefaultStorageLinkItem( this, req, true, true, item.getRepositoryItemUid() ); storeItem( false, link ); return link; } else { return null; } }
req.getRequestContext().putAll( context );
httpItem.getItemContext().putAll( request.getRequestContext() );
getRemoteStorage().retrieveItem( this, request, mirror.getUrl() ); remoteItem.getItemContext().putAll( request.getRequestContext() );
result.getItemContext().putAll( item.getItemContext() );
( (StorageFileItem) item ).getInputStream(), ( (StorageFileItem) item ).getMimeType() ) ); target.getItemContext().putAll( item.getItemContext() );