|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.resource.UniformResource
org.restlet.resource.ServerResource
fr.cnes.sitools.proxy.AbstractDirectoryServerResource
public abstract class AbstractDirectoryServerResource
Base class for Sitools Directory resources Additional methods :
#upload(Representation)}
,
class in Restlet : {@link #DirectoryServerResource()}
Constructor Summary | |
---|---|
AbstractDirectoryServerResource()
|
Method Summary | |
---|---|
org.restlet.representation.Representation |
get()
|
java.lang.String |
getBaseName()
Returns the local base name of the file. |
org.restlet.representation.Variant |
getBaseVariant()
Gets the baseVariant value |
org.restlet.Client |
getClientDispatcher()
Returns a client dispatcher. |
org.restlet.resource.Directory |
getDirectory()
Returns the parent directory handler. |
org.restlet.data.ReferenceList |
getDirectoryContent()
If the resource is a directory, this returns its content. |
java.lang.String |
getDirectoryUri()
Returns the context's directory URI (file, clap URI). |
org.restlet.representation.Representation |
getFileContent()
Gets the fileContent value |
java.lang.String |
getIndexName()
Gets the indexName value |
org.restlet.data.Reference |
getOriginalRef()
Gets the originalRef value |
org.restlet.representation.Variant |
getProtoVariant()
Gets the protoVariant value |
java.lang.String |
getRelativePart()
Gets the relativePart value |
org.restlet.Response |
getRepresentation(java.lang.String resourceUri)
Returns a representation of the resource at the target URI. |
org.restlet.Response |
getRepresentation(java.lang.String resourceUri,
org.restlet.data.MediaType acceptedMediaType)
Returns a representation of the resource at the target URI. |
java.util.Comparator<org.restlet.representation.Representation> |
getRepresentationsComparator()
Allows to sort the list of representations set by the resource. |
java.lang.String |
getTargetUri()
Returns the context's target URI (file, clap URI). |
org.restlet.data.Reference |
getUniqueReference()
Gets the uniqueReference value |
java.util.List<org.restlet.representation.Variant> |
getVariants()
|
java.util.List<org.restlet.representation.Variant> |
getVariants(org.restlet.data.Method method)
Returns the list of variants for the given method. |
java.util.List<org.restlet.representation.Variant> |
getVariantsGet()
Gets the variantsGet value |
org.restlet.data.ReferenceList |
getVariantsReferences()
Returns the references of the representations of the target resource according to the directory handler property |
org.restlet.representation.Representation |
handle()
|
org.restlet.representation.Representation |
handleDelete()
Handling the call for delete method using base handle |
boolean |
isDirectoryRedirection()
Gets the directoryRedirection value |
boolean |
isDirectoryTarget()
Indicates if the target resource is a directory. |
boolean |
isFileTarget()
Indicates if the target resource is a file. |
org.restlet.representation.Representation |
post(org.restlet.representation.Representation entity)
|
org.restlet.representation.Representation |
put(org.restlet.representation.Representation entity)
|
void |
setBaseName(java.lang.String base)
Set the base name |
void |
setBaseVariant(org.restlet.representation.Variant baseVariant)
Sets the value of baseVariant |
void |
setDirectory(DirectoryProxy dir)
Set the parent directory handler. |
void |
setDirectoryContent(org.restlet.data.ReferenceList dirContent)
If the resource is a directory, this returns its content. |
void |
setDirectoryRedirection(boolean directoryRedirection)
Sets the value of directoryRedirection |
void |
setDirectoryUri(java.lang.String dirUri)
Returns the context's directory URI (file, clap URI). |
void |
setFileContent(org.restlet.representation.Representation fileContent)
Sets the value of fileContent |
void |
setIfDirectoryTarget(boolean isDirTarget)
Indicates if the target resource is a directory. |
void |
setIfFileTarget(boolean isFileTarget)
Indicates if the target resource is a file. |
void |
setIndexName(java.lang.String indexName)
Sets the value of indexName |
void |
setOriginalRef(org.restlet.data.Reference originalRef)
Sets the value of originalRef |
void |
setProtoVariant(org.restlet.representation.Variant protoVariant)
Sets the value of protoVariant |
void |
setRelativePart(java.lang.String relativePart)
Sets the value of relativePart |
void |
setTargetUri(java.lang.String targetUri)
Sets the context's target URI (file, clap URI). |
void |
setUniqueReference(org.restlet.data.Reference uniqueReference)
Sets the value of uniqueReference |
void |
setVariantsGet(java.util.List<org.restlet.representation.Variant> variantsGet)
Sets the value of variantsGet |
org.restlet.representation.Representation |
upload(org.restlet.representation.Representation entity)
upload |
Methods inherited from class org.restlet.resource.ServerResource |
---|
abort, commit, getOnSent, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnSent, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods |
Methods inherited from class org.restlet.resource.UniformResource |
---|
getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMaxForwards, getMetadataService, getMethod, getProtocol, getQuery, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestEntity, getResponse, getResponseAttributes, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, release, setRequest, setResponse |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDirectoryServerResource()
Method Detail |
---|
public final java.util.List<org.restlet.representation.Variant> getVariantsGet()
public final void setVariantsGet(java.util.List<org.restlet.representation.Variant> variantsGet)
variantsGet
- the variantsGet to setpublic final org.restlet.representation.Representation getFileContent()
public final void setFileContent(org.restlet.representation.Representation fileContent)
fileContent
- the fileContent to setpublic final java.lang.String getRelativePart()
public final void setRelativePart(java.lang.String relativePart)
relativePart
- the relativePart to setpublic final org.restlet.representation.Representation get()
get
in class org.restlet.resource.ServerResource
public final java.lang.String getBaseName()
public final void setBaseName(java.lang.String base)
base
- the base name to setpublic final org.restlet.Client getClientDispatcher()
public final org.restlet.resource.Directory getDirectory()
public final void setDirectory(DirectoryProxy dir)
dir
- the directory to setpublic final org.restlet.data.ReferenceList getDirectoryContent()
public final void setDirectoryContent(org.restlet.data.ReferenceList dirContent)
dirContent
- the directory contentpublic final java.lang.String getDirectoryUri()
public final void setDirectoryUri(java.lang.String dirUri)
dirUri
- set the directory URIpublic final void setTargetUri(java.lang.String targetUri)
targetUri
- The context's target URI.public final org.restlet.Response getRepresentation(java.lang.String resourceUri)
resourceUri
- The URI of the target resource.
public final org.restlet.Response getRepresentation(java.lang.String resourceUri, org.restlet.data.MediaType acceptedMediaType)
resourceUri
- The URI of the target resource.acceptedMediaType
- The accepted media type or null.
public final java.util.Comparator<org.restlet.representation.Representation> getRepresentationsComparator()
public final java.lang.String getTargetUri()
public final java.util.List<org.restlet.representation.Variant> getVariants()
getVariants
in class org.restlet.resource.ServerResource
public final void setIfDirectoryTarget(boolean isDirTarget)
isDirTarget
- true if is a directory targetpublic final void setIfFileTarget(boolean isFileTarget)
isFileTarget
- true if is a file targetpublic final boolean isDirectoryTarget()
public final boolean isFileTarget()
public final org.restlet.representation.Representation post(org.restlet.representation.Representation entity)
post
in class org.restlet.resource.ServerResource
public final org.restlet.representation.Representation put(org.restlet.representation.Representation entity)
put
in class org.restlet.resource.ServerResource
public final org.restlet.representation.Representation upload(org.restlet.representation.Representation entity)
entity
- Representation
public org.restlet.representation.Representation handle()
handle
in class org.restlet.resource.ServerResource
public final boolean isDirectoryRedirection()
public final void setDirectoryRedirection(boolean directoryRedirection)
directoryRedirection
- the directoryRedirection to setpublic final org.restlet.data.Reference getOriginalRef()
getOriginalRef
in class org.restlet.resource.UniformResource
public final void setOriginalRef(org.restlet.data.Reference originalRef)
originalRef
- the originalRef to setpublic final org.restlet.representation.Representation handleDelete()
public final org.restlet.data.ReferenceList getVariantsReferences()
public final void setUniqueReference(org.restlet.data.Reference uniqueReference)
uniqueReference
- the uniqueReference to setpublic final org.restlet.data.Reference getUniqueReference()
public final void setBaseVariant(org.restlet.representation.Variant baseVariant)
baseVariant
- the baseVariant to setpublic final org.restlet.representation.Variant getBaseVariant()
public final void setProtoVariant(org.restlet.representation.Variant protoVariant)
protoVariant
- the protoVariant to setpublic final org.restlet.representation.Variant getProtoVariant()
public java.util.List<org.restlet.representation.Variant> getVariants(org.restlet.data.Method method)
getVariants
in class org.restlet.resource.ServerResource
method
- The related method.
DirectoryServerResource.getVariants(Method method)
public java.lang.String getIndexName()
public void setIndexName(java.lang.String indexName)
indexName
- the indexName to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |