|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.stratos.register.ui.utils.TenantConfigUtil
public class TenantConfigUtil
Utility methods for tenant configuration
| Constructor Summary | |
|---|---|
TenantConfigUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
checkDomainAvailability(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
Checks the availability of the domain |
static org.apache.stratos.tenant.register.stub.beans.xsd.CaptchaInfoBean |
generateRandomCaptcha(javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
Generates a random captcha |
static javax.servlet.http.HttpServletRequest |
readIntermediateData(javax.servlet.http.HttpServletRequest request,
String data)
|
static String |
registerTenantConfigBean(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
Registers the tenant |
static String |
resolveDomainName(String domainNameUserInput)
Resolves the correct domain name in the form of example.com from the user input domain name. |
static void |
setSubmissionValuesForSession(javax.servlet.http.HttpServletRequest request)
|
static String |
validateOrSuggestDomain(javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
Validates or suggests the domain |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TenantConfigUtil()
| Method Detail |
|---|
public static String registerTenantConfigBean(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
throws org.wso2.carbon.registry.common.ui.UIException
request - HttpServletRequestconfig - ServletConfigsession - HttpSession
org.wso2.carbon.registry.common.ui.UIExceptionpublic static void setSubmissionValuesForSession(javax.servlet.http.HttpServletRequest request)
public static boolean checkDomainAvailability(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
throws org.wso2.carbon.registry.common.ui.UIException
request - HttpServletRequestconfig - ServletConfigsession - HttpSession
org.wso2.carbon.registry.common.ui.UIException - if failed to check the availability.
public static String validateOrSuggestDomain(javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
throws org.wso2.carbon.registry.common.ui.UIException
config - ServletConfigsession - HttpSession
UIException, - if validating or suggesting the domain failed.
org.wso2.carbon.registry.common.ui.UIException
public static org.apache.stratos.tenant.register.stub.beans.xsd.CaptchaInfoBean generateRandomCaptcha(javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
throws org.wso2.carbon.registry.common.ui.UIException
config - ServletConfigsession - HttpSession
UIException, - if generating the random captcha fails.
org.wso2.carbon.registry.common.ui.UIException
public static javax.servlet.http.HttpServletRequest readIntermediateData(javax.servlet.http.HttpServletRequest request,
String data)
public static String resolveDomainName(String domainNameUserInput)
domainNameUserInput - the user input domain name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||