org.wso2.carbon.registry.core.servlet.utils
Class Utils

java.lang.Object
  extended by org.wso2.carbon.registry.core.servlet.utils.Utils

Deprecated.

@Deprecated
public class Utils
extends Object


Constructor Summary
Utils()
          Deprecated.  
 
Method Summary
static Map getParameters(String queryString)
          Deprecated. Extract the paramters from the query string.
static UserRegistry getSecureRegistry(javax.servlet.http.HttpServletRequest request)
          Deprecated. Returns the registry associated with the current session.
static boolean isLoggedIn(javax.servlet.http.HttpServletRequest request)
          Deprecated.  
static void logInUser(javax.servlet.http.HttpServletRequest request, String userName, String password)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Deprecated. 
Method Detail

getParameters

public static Map getParameters(String queryString)
Deprecated. 
Extract the paramters from the query string. e.g. for the URL http://localhost:8080/registry/d1/myresource?action=tag,tag_value=support project we have the query string "action=tag,tag_value=support project" it should be extracted to map as key=action, value=tag key=tag_value, value=support project

Parameters:
queryString - query string of the URL
Returns:
Map containg paramter name --> paramter value pairs

getSecureRegistry

public static UserRegistry getSecureRegistry(javax.servlet.http.HttpServletRequest request)
                                      throws RegistryException
Deprecated. 
Returns the registry associated with the current session. If a user registry is not found, new SecureRegistry instance is created with anonymous user and associated for the current session.

Parameters:
request - Servlet request
Returns:
SecureRegistry instance for the current session.
Throws:
RegistryException - : if something went wrong

isLoggedIn

public static boolean isLoggedIn(javax.servlet.http.HttpServletRequest request)
Deprecated. 

logInUser

public static void logInUser(javax.servlet.http.HttpServletRequest request,
                             String userName,
                             String password)
                      throws RegistryException
Deprecated. 
Throws:
RegistryException


Copyright © 2013 WSO2 Inc. All Rights Reserved.