org.gcube.common.core.resources.runtime
Class AccessPoint

java.lang.Object
  extended by org.gcube.common.core.resources.runtime.AccessPoint

public class AccessPoint
extends Object

Access point for GCUBERuntimeResource

Author:
Manuele Simi (ISTI-CNR)

Nested Class Summary
 class AccessPoint.PropertyData
           
 
Constructor Summary
AccessPoint()
           
 
Method Summary
 void addProperty(String name, String value, boolean... encrypted)
          Adds a new property
 Set<String> getAllPropertyNames()
          Gets all properties' names
 String getDescription()
           
 String getEndpoint()
           
 String getEntryname()
           
 String getPassword()
           
 String getProperty(String name)
          Gets a property's value
 String getUsername()
           
 boolean isPropertyEncrypted(String name)
          Gets a property's encryption setting
 void setDescription(String description)
           
 void setEndpoint(String endpoint)
           
 void setEntryname(String entryname)
           
 void setPassword(String password)
           
 void setUsername(String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessPoint

public AccessPoint()
Method Detail

getEndpoint

public String getEndpoint()
Returns:
the endpoint

setEndpoint

public void setEndpoint(String endpoint)
Parameters:
endpoint - the endpoint to set

addProperty

public void addProperty(String name,
                        String value,
                        boolean... encrypted)
Adds a new property

Parameters:
name - the name
value - the value

getProperty

public String getProperty(String name)
Gets a property's value

Parameters:
name - the name
Returns:
the value or null if the property does not exist

isPropertyEncrypted

public boolean isPropertyEncrypted(String name)
Gets a property's encryption setting

Parameters:
name - the name
Returns:
true if the property was encrypted, false otherwise

getUsername

public String getUsername()

setUsername

public void setUsername(String username)

getAllPropertyNames

public Set<String> getAllPropertyNames()
Gets all properties' names

Returns:
the properties' names

getEntryname

public String getEntryname()
Returns:
the entryname

setEntryname

public void setEntryname(String entryname)
Parameters:
entryname - the entryname to set

setDescription

public void setDescription(String description)

getDescription

public String getDescription()

getPassword

public String getPassword()

setPassword

public void setPassword(String password)


Copyright © 2012. All Rights Reserved.