|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openscience.nmrshiftdb.util.UrlTool
public class UrlTool
This is class building the http(s) url from request url.
| Field Summary | |
|---|---|
private org.apache.turbine.util.RunData |
data
|
private javax.servlet.ServletConfig |
servcon
|
private static java.util.HashMap<java.lang.String,org.apache.jetspeed.om.security.turbine.TurbineUser> |
tuser
|
private static java.util.HashMap<java.lang.String,java.lang.Long> |
users
|
| Constructor Summary | |
|---|---|
UrlTool()
|
|
| Method Summary | |
|---|---|
java.util.List |
getAff1()
|
java.util.List |
getAff2()
|
java.lang.String |
getAppropriateURL()
Gets the logon wiht(out) link. |
java.lang.String |
getBaseUrl()
Gets the baseUrl attribute of the UrlTool object |
java.lang.String |
getBaseUrl(javax.servlet.http.HttpServletRequest request)
Gets the baseUrl attribute of the UrlTool object |
java.lang.String |
getIsHttps()
Tells if the current connection is by https or not. |
java.util.List |
getLabGroups()
|
int |
getRandomId()
|
java.lang.String |
getServerOverview()
Gets an overview of nmrshiftdb servers by rendering servers.xml. |
org.apache.jetspeed.om.security.turbine.TurbineUser |
getTurbineUser(org.apache.jetspeed.services.rundata.JetspeedRunData data)
|
static java.util.HashMap<java.lang.String,org.apache.jetspeed.om.security.turbine.TurbineUser> |
getTuser()
|
java.lang.String |
getUsers(java.lang.String servername)
Gets the number of users on a certain server. |
static java.util.HashMap |
getUsersMap()
|
void |
init(java.lang.Object data)
Init from ApplicationTool interface. |
boolean |
isLabserver()
|
void |
refresh()
Refresh from ApplicationTool interface. |
UrlTool |
setServcon(javax.servlet.ServletConfig servcon)
Sets the servlet configuration value (this is only needed for getServerOverview). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private org.apache.turbine.util.RunData data
private javax.servlet.ServletConfig servcon
private static java.util.HashMap<java.lang.String,java.lang.Long> users
private static java.util.HashMap<java.lang.String,org.apache.jetspeed.om.security.turbine.TurbineUser> tuser
| Constructor Detail |
|---|
public UrlTool()
| Method Detail |
|---|
public UrlTool setServcon(javax.servlet.ServletConfig servcon)
servcon - The servletconfiguration.public java.lang.String getAppropriateURL()
public java.lang.String getIsHttps()
public java.lang.String getServerOverview()
public java.lang.String getUsers(java.lang.String servername)
servername - The name of the server.
public java.lang.String getBaseUrl()
public java.lang.String getBaseUrl(javax.servlet.http.HttpServletRequest request)
public void init(java.lang.Object data)
init in interface org.apache.turbine.services.pull.ApplicationTooldata - RunData.public void refresh()
refresh in interface org.apache.turbine.services.pull.ApplicationToolpublic static java.util.HashMap getUsersMap()
public java.util.List getLabGroups()
throws java.lang.Exception
java.lang.Exception
public int getRandomId()
throws java.lang.Exception
java.lang.Exception
public java.util.List getAff1()
throws java.lang.Exception
java.lang.Exception
public java.util.List getAff2()
throws java.lang.Exception
java.lang.Exception
public org.apache.jetspeed.om.security.turbine.TurbineUser getTurbineUser(org.apache.jetspeed.services.rundata.JetspeedRunData data)
throws org.apache.torque.TooManyRowsException,
org.apache.torque.TorqueException
org.apache.torque.TooManyRowsException
org.apache.torque.TorqueException
public boolean isLabserver()
throws java.io.IOException
java.io.IOExceptionpublic static java.util.HashMap<java.lang.String,org.apache.jetspeed.om.security.turbine.TurbineUser> getTuser()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||