public class VariablePool
extends java.lang.Object
Constructor and Description |
---|
VariablePool()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
dirB(java.lang.String oid,
java.lang.String attrName)
Reads a single (the first) boolean value from a P2J directory attribute.
|
boolean |
dirB(java.lang.String oid,
java.lang.String attrName,
long i)
Reads a single indexed boolean value from a P2J directory attribute.
|
long |
dirL(java.lang.String oid,
java.lang.String attrName)
Reads a single (the first) integer value from a P2J directory attribute.
|
long |
dirL(java.lang.String oid,
java.lang.String attrName,
long i)
Reads a single indexed integer value from a P2J directory attribute.
|
java.lang.String |
dirS(java.lang.String oid,
java.lang.String attrName)
Reads a single (the first) string value from a P2J directory attribute.
|
java.lang.String |
dirS(java.lang.String oid,
java.lang.String attrName,
long i)
Reads a single indexed string value from a P2J directory attribute.
|
java.lang.String |
getAppId()
Gets the current application ID.
|
private SecurityContextStack |
getContext()
Safely query the cached security context.
|
java.lang.String |
getDate()
Gets the current date as "YYYY/MM/DD".
|
long |
getDayOfEpoch()
Gets the current day of the epoch.
|
long |
getDayOfMonth()
Gets the current day of the month.
|
long |
getDayOfYear()
Gets the current day of the year.
|
java.lang.String |
getGroup(long i)
Gets a group name by index.
|
java.lang.String |
getGroupId()
Gets the first defined group ID.
|
long |
getGroups()
Gets the number of groups.
|
long |
getHour()
Gets the current hour for 24 hour clock.
|
long |
getHourAmPm()
Gets the current hour for 12 hour clock.
|
long |
getMinSinceMidnight()
Gets the current minute since midnight.
|
long |
getMinute()
Gets the current minute.
|
long |
getMonth()
Gets the current month.
|
java.lang.String |
getPeerIp()
Gets the TLS peer IP address.
|
java.lang.String |
getPeerName()
Gets the TLS peer name.
|
long |
getPeerNode()
Gets the TLS P2J peer node address.
|
int |
getRequestedDebugLevel()
Gets the requested debug level.
|
long |
getSecond()
Gets the current second.
|
long |
getSecSinceMidnight()
Gets the current second since midnight.
|
java.lang.String |
getServerIp()
Gets the TLS server IP address.
|
java.lang.String |
getServerName()
Gets the TLS server name.
|
long |
getServerNode()
Gets the TLS P2J server node address.
|
private NetSocket |
getSocket(SecurityContextStack ctx)
Access the network state associated with the current security context.
|
java.lang.String |
getTime()
Gets the current time of day.
|
java.lang.String |
getUserId()
Gets the current user ID.
|
long |
getWeekDay()
Gets the current day of the week.
|
long |
getWeekNum()
Gets the current week number.
|
long |
getYear()
Gets the current year.
|
boolean |
isAm()
Checks whether it is AM time.
|
boolean |
isHoliday()
Checks whether today is a holiday.
|
boolean |
isPm()
Checks whether it is PM time.
|
boolean |
isSecureConnection()
Gets the secure status of the socket in use for this session.
|
public int getRequestedDebugLevel()
This variable can be used to create expressions controlling debugging.
public java.lang.String getAppId()
public java.lang.String getUserId()
public long getGroups()
public java.lang.String getGroupId()
public java.lang.String getGroup(long i)
i
- index of the group name to getpublic java.lang.String getPeerName()
public java.lang.String getServerName()
public java.lang.String getPeerIp()
public java.lang.String getServerIp()
public boolean isSecureConnection()
true
if the socket is based on SSL/TLS and
false
if the socket is insecure.public long getPeerNode()
public long getServerNode()
public java.lang.String getDate()
public long getYear()
public long getMonth()
public long getDayOfMonth()
public long getDayOfYear()
public long getDayOfEpoch()
public long getWeekDay()
public long getWeekNum()
public boolean isHoliday()
true
if today is a public holidaypublic java.lang.String getTime()
public long getHourAmPm()
public long getHour()
public long getMinute()
public long getSecond()
public long getMinSinceMidnight()
public long getSecSinceMidnight()
public boolean isAm()
true
if it is AM time.public boolean isPm()
true
if it is PM time.public java.lang.String dirS(java.lang.String oid, java.lang.String attrName)
oid
- directory object id to queryattrName
- attribute name to readpublic java.lang.String dirS(java.lang.String oid, java.lang.String attrName, long i)
oid
- directory object id to queryattrName
- attribute name to readi
- index of the particular value to readpublic long dirL(java.lang.String oid, java.lang.String attrName)
oid
- directory object id to queryattrName
- attribute name to readpublic long dirL(java.lang.String oid, java.lang.String attrName, long i)
oid
- directory object id to queryattrName
- attribute name to readi
- index of the particular value to readpublic boolean dirB(java.lang.String oid, java.lang.String attrName)
oid
- directory object id to queryattrName
- attribute name to readpublic boolean dirB(java.lang.String oid, java.lang.String attrName, long i)
oid
- directory object id to queryattrName
- attribute name to readi
- index of the particular value to readprivate SecurityContextStack getContext()
null
if there is no
context available.private NetSocket getSocket(SecurityContextStack ctx)
ctx
- The current session's security context.