/** * Returns the URL of the AppRoot of the incoming request. * * @return */ public String getRequestAppRootUrl() { return getRequestContext().getRequestAppRootUrl(); }
/** * Checks if is request remote only. * * @return true, if is request remote only */ public boolean isRequestRemoteOnly() { return getRequestContext().isRequestRemoteOnly(); }
/** * Checks if is request group local only. * * @return true, if is request group local only */ public boolean isRequestGroupLocalOnly() { return getRequestContext().isRequestGroupLocalOnly(); }
private ResourceStoreRequest createResourceStoreRequest( final StorageCollectionItem item, final DeleteOperation operation ) { ResourceStoreRequest request = new ResourceStoreRequest( item ); request.getRequestContext().put( DeleteOperation.DELETE_OPERATION_CTX_KEY, operation ); return request; }
/** * Creates a new request off from a given one. * * @param item */ public ResourceStoreRequest( ResourceStoreRequest request ) { this( request.getRequestPath(), true, false ); getRequestContext().setParentContext( request.getRequestContext() ); }
public void setResourceStoreRequest( ResourceStoreRequest request ) { this.request = request; this.context = new RequestContext( request.getRequestContext() ); }
/** * Sets the ETag (SHA1 in Nexus) to check item against. * * @param tag */ public void setIfNoneMatch( String tag ) { getRequestContext().setIfNoneMatch( tag ); }
/** * Returns the URL of the original request. * * @return */ public String getRequestUrl() { return getRequestContext().getRequestUrl(); }
/** * Sets the request local only. * * @param requestLocalOnly the new request local only */ public void setRequestLocalOnly( boolean requestLocalOnly ) { getRequestContext().setRequestLocalOnly( requestLocalOnly ); }
/** * Returns the timestamp to check against. * * @return */ public long getIfModifiedSince() { return getRequestContext().getIfModifiedSince(); }
/** * Sets the URL of the original request. * * @param url */ public void setRequestUrl( String url ) { getRequestContext().setRequestUrl( url ); }
/** * Sets the request group local only. * * @param requestremoteOnly the new request group local only */ public void setRequestGroupLocalOnly( boolean requestGroupLocal ) { getRequestContext().setRequestGroupLocalOnly( requestGroupLocal ); }
/** * Returns true if the request is conditional. * * @return true if this request is conditional. */ public boolean isConditional() { return getRequestContext().isConditional(); }
/** * Sets the URL of the AppRoot of the incoming request. * * @param url */ public void setRequestAppRootUrl( String url ) { getRequestContext().setRequestAppRootUrl( url ); }
/** * Sets the request remote only. * * @param requestremoteOnly the new request remote only */ public void setRequestRemoteOnly( boolean requestRemoteOnly ) { getRequestContext().setRequestRemoteOnly( requestRemoteOnly ); }
/** * Sets the timestamp to check against. * * @param ifModifiedSince */ public void setIfModifiedSince( long ifModifiedSince ) { getRequestContext().setIfModifiedSince( ifModifiedSince ); }
/** * Gets the ETag (SHA1 in Nexus) to check item against. * * @return */ public String getIfNoneMatch() { return getRequestContext().getIfNoneMatch(); }
/** * Checks if is request local only. * * @return true, if is request local only */ public boolean isRequestLocalOnly() { return getRequestContext().isRequestLocalOnly(); }
/** * Sets the request local only. * * @param requestLocalOnly the new request local only */ public void setRequestLocalOnly( boolean requestLocalOnly ) { put( CTX_LOCAL_ONLY_FLAG, requestLocalOnly ); }
/** * Gets the ETag (SHA1 in Nexus) to check item against. * * @return */ public String getIfNoneMatch() { return (String) get( CTX_CONDITION_IF_NONE_MATCH ); }