input
stringlengths
10
828
output
stringlengths
5
107
public void set what string value what value
set the what property
public void set selected hashtable string string value selected value
set the selected property
private element get wms root entry entry throws exception string wms url entry get resource get path element root wms cache get wms url if root null root xml util get root wms url get class if wms cache size 10 wms cache new hashtable string element todo expire the cache after some time so we would pick up any changes to the wms xml wms cache put wms url root return root
this reads the wms capabilities for the given entry
public void set date date value date value
set the date property
public string get href wms selection wms string href html utils href get url wms wms get title return href
get the href link for the given wms layer
public string get url wms selection wms double width wms get bounds get degrees x double height wms get bounds get degrees y string url wms assemble request wms get bounds 600 int 600 height width return url
get the url for the given wms layer
public void set user user value user value
set the user property
public netcdf dataset get netcdf dataset entry entry string path if can load as cdm entry return null ext counter incr return nc dataset pool get path
get the netcdf dataset for the entry
private ldapmanager get manager ldapadmin handler admin handler ldapadmin handler get ldaphandler get repository check if the admin handler has changed its state if last ldapserver version admin handler get version manager null try last ldapserver version admin handler get version manager ldapmanager get instance admin handler get ldap url admin handler get user directory admin handler get group directory admin handler get admin id admin handler get password catch exception e log error ldap error creating ldapmanager e return manager
if not already created then create and return the ldapmanager
public string get id return ldap handler id
used to uniquely identify this admin handler
private boolean is password string prop return prop equals prop ldap password
is this property id the password
public string get ldap url return get repository get property prop ldap url string null
get the server
private string obfuscate string value if value null return null if value length 0 return value return new string repository util encode base64 value get bytes
helper method to obfuscate password in db
public void return netcdf dataset string path netcdf dataset ncd ext counter decr nc dataset pool put path ncd
return the netcdf dataset
public void return grid dataset string path grid dataset ncd if do grid pool grid pool put path ncd
return the grid dataset back to the pool
public feature dataset point get point dataset entry entry string path if can load as point entry return null return point pool get path
get the entry as a point dataset
public void return point dataset string path feature dataset point ncd point pool put path ncd
return the point dataset to the pool
public void set needs ssl boolean value this needs ssl value
set the needs ssl property
public boolean get needs ssl return this needs ssl
get the needs ssl property
public void set path string value path value file null
set the path property
public void set md5 string value md5 value
set the md5 property
public result output wcs request request entry entry return new result new string buffer tbd
output the entry as a wcs result
public string get md5 if md5 null for now don t do this because big files take a long time file file get the file if file exists md5 ioutil get md5 file to string return md5
get the md5 property
public void process form field file item item string name item get field name byte bytes item get don t do this for now since it screws up utf 8 character encodings string value item get string string value new string bytes if name starts with desc system err println value value form args put name value
process any form input
public void get request headers http servlet request request for enumeration header names request get header names header names has more elements string name string header names next element string value request get header name http args put name value
gets the http request headers
public void set is group boolean value is group value
set the is group property
public void set create date long value create date value
set the create date property
public void set parent group id string value parent group id value
set the parent id property
public string get parent group id return parent group id
get the parent id property
public void check expansion if have loaded return have loaded true run it in a thread misc run this check expansion inner
expand if needed
public void set start date long value start date value
set the start date property
public boolean get property string name boolean dflt return dflt
note this is overwritten in the repository class
public void set initial group string value this initial group value
set the initial group property
public void set end date long value end date value
set the end date property
public string get initial group return this initial group
get the initial group property
public void set initial group name string value this initial group name value
set the initial group name property
public string get initial group name return this initial group name
get the initial group name property
public double get south return south south south nongeo
get the south property
public double get north return north north north nongeo
get the north property
public void set port int value http port value
set the port property
public int get port return http port
get the port property
public double get east return east east east nongeo
get the east property
public double get west return west west west nongeo
get the west property
public void set resource resource value resource value
set the resource property
public void set url base string value url base value
set the url base property
public authorization method get authorization method request request output type output request get output if output equals output wcs output equals output opendap return authorization method auth http return super get authorization method request
get the authorization method
public void set tmp byte value if value null password null else password new string repository util decode base64 new string value
method for encoding to xml the password
public string get path entry entry throws exception return get path null entry
get the path to the data
public opendap api handler get opendap handler return opendap api handler get repository get api handler opendap api handler api id
get the ope ndap handler
public boolean is anonymous return user null user trim length 0
get the anonymous property
public void set default group id string value default group id value
set the default group property
public string get default group id return default group id
get the default group property
public void set default group name string value default group name value
set the default group name property
public string get default group name return default group name
get the default group name property
public string get server version return opendap 3 7
get the server version
public void set icon string value icon value
set the icon property
private logger get logger check if we ve already had an error if logger ok return null if logger null try logger logger get logger log manager class catch exception exc logger ok false system err println error getting logger exc exc print stack trace return logger
create if needed and return the logger
public string get param name string rawname string name rawname int index rawname index of unit if index 0 name rawname substring 0 index return name
get the parameter name from the raw name
public void set from id string value from id value
set the from id property
public void set to id string value to id value
set the to id property
public void set request string value request value
set the request property
private string get unit from name string rawname string unit null int index rawname index of unit if index 0 unit rawname substring index 6 rawname index of unit unit replace all return unit
get the parameter unit from the raw name
public void set method method value method value
set the method property
public void set ip string value ip value
set the ip property
public void set is top level boolean value is top level value
set the is top level property
public boolean get is top level return is top level
get the is top level property
public void set must be admin boolean value must be admin value
set the must be admin property
public boolean get must be admin return must be admin
get the must be admin property
public void add item time series data item item if seen contains item return seen add item items add item
add an item to the timeseries
public void set requires auth token boolean value requires auth token value
set the requires auth token property
public void set user agent string value user agent value
set the user agent property
public boolean get requires auth token return requires auth token
get the requires auth token property
public void set actions list value actions value
set the actions property
public void set check auth method boolean value this check auth method value
set the check auth method property
public boolean get check auth method return this check auth method
get the check auth method property
public void set auth method string value this auth method value
set the auth method property
public string get auth method return this auth method
get the auth method property
public void set wiki template string value wiki template value
set the wiki template property
public string get wiki template entry entry if its a fake entry e g from search results then don t use the wiki template if entry is dummy return null return wiki template
get the wiki template property
public void set show menubar boolean value show menubar value
set the show menubar property
public boolean get show menubar entry entry if true return false return show menubar
get the show menubar property
public void set show toolbar boolean value show toolbar value
set the show toolbar property
public boolean get show toolbar entry entry if true return false return show toolbar
get the show toolbar property
public void set show layout toolbar boolean value show layout toolbar value
set the show layout toolbar property
public boolean get show layout toolbar entry entry if true return false return show layout toolbar
get the show layout toolbar property
public void set show entry header boolean value show entry header value
set the show entry header property
public boolean get show entry header entry entry return show entry header
get the show entry header property
public void set show breadcrumbs boolean value show breadcrumbs value
set the show breadcrumbs property
public boolean get show breadcrumbs entry entry if true return false return show breadcrumbs
get the show breadcrumbs property
public string get message hashtable props string message return misc get property props attr message message
get the message
public html output handler get html output handler return get repository get html output handler
utility to get the htmloutputhandler
public string get name if name null name misc get class name get class return name
get the name property
public calendar output handler get calendar output handler try return calendar output handler get repository get output handler calendar output handler output calendar catch exception exc throw new runtime exception exc
get the calendar output handler
public void set for user boolean value for user value
set the for user property
public boolean get for user return for user
get the for user property
public void set group name string value group name value
set the group name property
public boolean get is view return is type type view
get the is html property
public void set running boolean value running value
set the running property
public void set extra html string value extra html value
set the extra html property
public string get extra html return extra html
get the extra html property