fr.cnes.sitools.proxy
Class DirectoryUser

java.lang.Object
  extended by org.restlet.Restlet
      extended by org.restlet.resource.Finder
          extended by org.restlet.resource.Directory
              extended by fr.cnes.sitools.proxy.DirectoryProxy
                  extended by fr.cnes.sitools.proxy.DirectoryUser
All Implemented Interfaces:
org.restlet.ext.wadl.WadlDescribable, org.restlet.Uniform

public final class DirectoryUser
extends DirectoryProxy

User directory

Author:
jp.boignard (AKKA Technologies)

Constructor Summary
DirectoryUser(org.restlet.Context context, org.restlet.data.Reference rootLocalReference, java.lang.String proxyBaseRef, java.lang.String userAttribute)
          Constructor with proxyBaseRef
DirectoryUser(org.restlet.Context context, java.lang.String rootUri, java.lang.String proxyBaseRef, java.lang.String userAttribute)
          Constructor with proxyBaseRef
 
Method Summary
 java.lang.String getUserAttribute()
          Gets the userAttribute value
 void handle(org.restlet.Request request, org.restlet.Response response)
          To manage the POST JSON or XML representation (command/preferences/...) as a file into the user directory (creates the directories path if needed).
 void setUserAttribute(java.lang.String userAttribute)
          Sets the value of userAttribute
 
Methods inherited from class fr.cnes.sitools.proxy.DirectoryProxy
getIndexRepresentation, getIndexVariants, getProxyBaseRef, getRegexp, getResourceInfo, isNocache, setNocache, setRegexp
 
Methods inherited from class org.restlet.resource.Directory
getComparator, getIndexName, getRootRef, isDeeplyAccessible, isListingAllowed, isModifiable, isNegotiateContent, isNegotiatingContent, setAlphaComparator, setAlphaNumComparator, setComparator, setDeeplyAccessible, setIndexName, setListingAllowed, setModifiable, setNegotiateContent, setNegotiatingContent, setRootRef
 
Methods inherited from class org.restlet.resource.Finder
create, create, createFinder, find, findTarget, getTargetClass, setTargetClass
 
Methods inherited from class org.restlet.Restlet
getApplication, getAuthor, getContext, getDescription, getLogger, getName, getOwner, isStarted, isStopped, setAuthor, setContext, setDescription, setName, setOwner, start, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryUser

public DirectoryUser(org.restlet.Context context,
                     org.restlet.data.Reference rootLocalReference,
                     java.lang.String proxyBaseRef,
                     java.lang.String userAttribute)
Constructor with proxyBaseRef

Parameters:
context - restlet context
rootLocalReference - root local reference
proxyBaseRef - proxy base reference
userAttribute - user attribute

DirectoryUser

public DirectoryUser(org.restlet.Context context,
                     java.lang.String rootUri,
                     java.lang.String proxyBaseRef,
                     java.lang.String userAttribute)
Constructor with proxyBaseRef

Parameters:
context - restlet context
rootUri - root URI
proxyBaseRef - proxy base reference
userAttribute - user attribute
Method Detail

handle

public void handle(org.restlet.Request request,
                   org.restlet.Response response)
To manage the POST JSON or XML representation (command/preferences/...) as a file into the user directory (creates the directories path if needed).

Specified by:
handle in interface org.restlet.Uniform
Overrides:
handle in class org.restlet.resource.Directory
Parameters:
request - Request
response - Response
See Also:
Directory.handle(org.restlet.Request, org.restlet.Response)

getUserAttribute

public java.lang.String getUserAttribute()
Gets the userAttribute value

Returns:
the userAttribute

setUserAttribute

public void setUserAttribute(java.lang.String userAttribute)
Sets the value of userAttribute

Parameters:
userAttribute - the userAttribute to set


Copyright © 2010-2013 CNES. All Rights Reserved.