input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void error string category string message try logger loggers get category warning message catch null pointer exception ne if loggers get category null set new class to log category error category message recursive yikes catch exception e
|
this method will log for severity level error
|
public void debug string category string message try logger loggers get category debug message catch null pointer exception ne if loggers get category null set new category to log category debug category message recursive yikes catch exception e
|
this method will log for severity level debug
|
private void setup keyword list string keywords break character delimited string into vector list keyword list keywords
|
take the keyword string given delimited by a character
|
public void error string category string message throwable t try logger loggers get category warning message t catch null pointer exception ne if loggers get category null set new category to log category error category message t recursive yikes catch exception e
|
this method will log for severity level error
|
protected int get severity level chosen return this severity level chosen
|
get the severity level specified in the log properties
|
public void debug string category string message throwable t try logger loggers get category debug message t catch null pointer exception ne if loggers get category null set new category to log category debug category message t recursive yikes catch exception e
|
this method will log for severity level debug
|
private void break character delimited string into vector list vector v string text if v null text null return string tokenizer st new string tokenizer text delimiter while st has more tokens v add st next token trim
|
helper utility method to break and put character delimited string into
|
public void fatal object obj string message try logger loggers get obj get class get name severe message catch null pointer exception ne if loggers get obj get class get name null set new class to log obj fatal obj message recursive yikes catch exception e
|
this method will log for severity level fatal
|
public void error object obj string message try logger loggers get obj get class get name error message catch null pointer exception ne if loggers get obj get class get name null set new class to log obj error obj message recursive yikes catch exception e
|
this method will log for severity level error
|
private boolean are keywords in text vector v string text enumeration e v elements while e has more elements if text trim index of string e next element trim 1 return true return false
|
helper utility method to check if any keyword in a set of keywords
|
public void fatal object obj string message throwable t try logger loggers get obj get class get name severe message t catch null pointer exception ne if loggers get obj get class get name null set new class to log obj fatal obj message t recursive yikes catch exception e
|
this method will log for severity level fatal
|
public void error object obj string message throwable t try logger loggers get obj get class get name error message t catch null pointer exception ne if loggers get obj get class get name null set new class to log obj error obj message t recursive yikes catch exception e
|
this method will log for severity level error
|
public void fatal string category string message try logger loggers get category severe message catch null pointer exception ne if loggers get category null set new class to log category fatal category message recursive yikes catch exception e
|
this method will log for severity level fatal
|
protected boolean is classname in category list string classname return are keywords in text categories list classname
|
helper utility method to check if any classname in a set of categories
|
public void error string category string message try logger loggers get category error message catch null pointer exception ne if loggers get category null set new category to log category error category message recursive yikes catch exception e
|
this method will log for severity level error
|
public void fatal string category string message throwable t try logger loggers get category severe message t catch null pointer exception ne if loggers get category null set new category to log category fatal category message t recursive yikes catch exception e
|
this method will log for severity level fatal
|
public void error string category string message throwable t try logger loggers get category error message t catch null pointer exception ne if loggers get category null set new category to log category error category message t recursive yikes catch exception e
|
this method will log for severity level error
|
protected boolean check for categories and keywords string classname string message if get usekeywords get usecategories return true just allow to print if get usekeywords if are keywords in message message return true if get usecategories if is classname in category list classname return true return false
|
helper utility method to check for any categories and keywords
|
public void fatal object obj string message try logger loggers get obj get class get name fatal message catch null pointer exception ne if loggers get obj get class get name null set new class to log obj fatal obj message recursive yikes catch exception e
|
this method will log for severity level fatal
|
public void fatal object obj string message throwable t try logger loggers get obj get class get name fatal message t catch null pointer exception ne if loggers get obj get class get name null set new class to log obj fatal obj message t recursive yikes catch exception e
|
this method will log for severity level fatal
|
public void fatal string category string message try logger loggers get category fatal message catch null pointer exception ne if loggers get category null set new category to log category fatal category message recursive yikes catch exception e
|
this method will log for severity level fatal
|
public void fatal string category string message throwable t try logger loggers get category fatal message t catch null pointer exception ne if loggers get category null set new category to log category fatal category message t recursive yikes catch exception e
|
this method will log for severity level fatal
|
public hop get outbound proxy return this default route
|
get the default hop
|
public void init throws portlet exception try input stream xslstream this get portlet context get resource as stream rss portlet rss10 xsl stream source source new stream source xslstream transformer factory t factory transformer factory new instance this m translet10 t factory new templates source xslstream this get portlet context get resource as stream rss portlet rss20 xsl source new stream source xslstream t factory transformer factory new instance this m translet20 t factory new templates source catch exception e string es error init translets log error es e throw new portlet exception es e
|
gets the xsl file and puts it into application scope
|
public void store request long site id string search string if string utils is blank search string return session session hibernate utils get session try session begin transaction search bean bean new search bean bean set site id site id bean set search date new date bean set word search string session save bean session flush session clear session get transaction commit finally session close
|
store search request in db
|
public boolean has next return get not indexed count 0
|
returns tt true tt if the iteration has more elements
|
public long next webclip bean webclip portlet dao factory get webclip dao get first for indexing site id if webclip null return webclip get webclip id return null
|
returns the next element in the iteration
|
public void set current href value string value this href value
|
set current href
|
public string get charset locale locale string charset null first try a full name match language country variant charset map get property locale to string if charset null return charset second try to match just the language and country charset map get property new string builder locale get language append append locale get country to string if charset null return charset 3rd we try only language charset map get property locale get language return charset
|
calculate the name of a character set to be assumed given the specified
|
public string get string string key if key null string msg key is null throw new null pointer exception msg string str null try str bundle get string key catch missing resource exception mre str cannot find message associated with key key mre print stack trace return str
|
get a string from the underlying resource bundle
|
public void add description description v description description add v description
|
method add description
|
public string get portlet mode return this portlet mode
|
returns the value of field portlet mode
|
public void set description list description description this description description
|
method set description
|
public void set value string value this value containert string utils strip value
|
sets the value of field value
|
public void set role link string role link this role link role link
|
sets the value of field role link
|
public void set portlet mode string portlet mode this portlet mode portlet mode
|
sets the value of field portlet mode
|
public void add portlet name string v portlet name portlet name add v portlet name
|
method add portlet name
|
public void add description description v description descriptions add v description
|
method add description
|
public void set portlet name list string portlet name this portlet name portlet name
|
method set portlet name
|
public string get window state return this window state
|
returns the value of field window state
|
public void add custom window state custom window state v custom window state custom window state add v custom window state
|
method add custom window state
|
public void add description description v description description list add v description
|
method add description
|
public void add description int index description v description description list add index v description
|
method add description
|
public void add security constraint security constraint v security constraint security constraint add v security constraint
|
method add security constraint
|
public void clear description description list clear
|
method clear description
|
public void add user attribute user attribute v user attribute user attribute add v user attribute
|
method add user attribute
|
public description get description int index check bounds for index if index 0 index description list size throw new index out of bounds exception return description description list get index
|
method get description
|
public string get short title return this short title
|
returns the value of field short title
|
public int get description count return description list size
|
method get description count
|
public void set custom portlet mode list custom portlet mode custom portlet mode this custom portlet mode custom portlet mode
|
method set custom portlet mode
|
public transport guarantee type get transport guarantee return this transport guarantee
|
returns the value of field transport guarantee
|
public void set custom window state list custom window state custom window state this custom window state custom window state
|
method set custom window state
|
public void set keywords list string keywords this keywords keywords
|
sets the value of field keywords
|
public boolean remove description description v description boolean removed description list remove v description return removed
|
method remove description
|
public void add value string v value if value null set value new array list string value add v value
|
method add value
|
public void set short title string short title this short title short title
|
sets the value of field short title
|
public void set description int index description v description check bounds for index if index 0 index description list size throw new index out of bounds exception description list set index v description
|
method set description
|
public void set portlet list portlet definition portlet this portlet portlet
|
method set portlet
|
public void set description description description array copy array description list clear for final description new var description array description list add new var
|
method set description
|
public void add display name display name v display name display name add v display name
|
method add display name
|
public void set security constraint list security constraint security constraint this security constraint security constraint
|
method set security constraint
|
public portlet collection get portlet collection return this portlet collection
|
returns the value of field portlet collection
|
public void set user attribute list user attribute user attribute this user attribute user attribute
|
method set user attribute
|
public user data constraint get user data constraint return this user data constraint
|
returns the value of field user data constraint
|
public void set transport guarantee transport guarantee type transport guarantee this transport guarantee transport guarantee
|
sets the value of field transport guarantee
|
public void set display name list display name display name this display name display name
|
method set display name
|
public void set portlet collection portlet collection portlet collection this portlet collection portlet collection
|
sets the value of field portlet collection
|
public void set user data constraint user data constraint user data constraint this user data constraint user data constraint
|
sets the value of field user data constraint
|
public void add security role ref security role ref v security role ref security role ref list add v security role ref
|
method add security role ref
|
public void add supported locale string v supported locale supported locale add v supported locale
|
method add supported locale
|
public void reset buffer if is commited throw new illegal state exception response already commited try if real writer null real writer close real writer new print writer logger new output stream writer output stream content type manager get character encoding true else if real output stream null real output stream close real output stream new servlet output stream with output stream output stream catch ioexception e string es error invoke reset buffer throw new illegal state exception es e
|
clears the content of the underlying buffer in the response without
|
public void add supports supports v supports supports add v supports
|
method add supports
|
public integer get expiration cache return this expiration cache
|
returns the value of field expiration cache
|
public string get portlet name return this portlet name
|
returns the value of field portlet name
|
public void set expiration cache integer expiration cache this expiration cache expiration cache
|
sets the value of field expiration cache
|
public void set id java lang string id this id id init full portlet name
|
sets the value of field id
|
public void set portlet class java lang string portlet class this portlet class portlet class
|
sets the value of field portlet class
|
public void set portlet name string portlet name this portlet name portlet name init full portlet name
|
sets the value of field portlet name
|
public void set security role ref list security role ref security role ref this security role ref list security role ref
|
method set security role ref
|
public void set supports list supports supports this supports supports
|
method set supports
|
public void add portlet int index site portlet data v portlet portlet list add index v portlet
|
method add portlet
|
public void clear portlet portlet list clear
|
method clear portlet
|
public site portlet data get portlet int index check bounds for index if index 0 index portlet list size throw new index out of bounds exception return site portlet data portlet list get index
|
method get portlet
|
public int get portlet count return portlet list size
|
method get portlet count
|
public boolean remove portlet site portlet data v portlet boolean removed portlet list remove v portlet return removed
|
method remove portlet
|
public void set portlet int index site portlet data v portlet check bounds for index if index 0 index portlet list size throw new index out of bounds exception portlet list set index v portlet
|
method set portlet
|
public void set portlet site portlet data portlet array portlet list clear for final site portlet data new var portlet array portlet list add new var
|
method set portlet
|
public void set portlet list site portlet data portlet collection portlet list clear for int i 0 i portlet collection size i portlet list add site portlet data portlet collection get i
|
method set portlet
|
public void set portlet as reference list site portlet data portlet collection portlet list portlet collection
|
method set portlet as reference
|
protected url find resource string name return cl find resource name file search resource new file class path file separator char name url result null if search resource exists try return search resource to url catch malformed urlexception mfe return result
|
identify where to load a resource from resources for
|
protected enumeration find resources final string name throws ioexception return cl find resources name since we only have a single repository we will only have one resource of a particular name the enumeration will just return this single url return new enumeration url resource find resource name public boolean has more elements return resource null true false public object next element if has more elements throw new no such element exception else url result resource resource null return result
|
used for identifying resources from multiple urls
|
public void destroy this filter config null request statistic service destroy service
|
take this filter out of service
|
public string to string if filter config null return request dumper filter string builder sb new string builder request dumper filter sb append filter config sb append return sb to string
|
return a string representation of this object
|
public object get attribute string name int scope validate not null attribute name name string key scope portlet session application scope name create portlet scoped id name return http session get attribute key
|
returns the attribute of the specified name under the given scope
|
public void set window state window state window state throws window state exception enumeration supported window states portal context get supported window states if window state null while supported window states has more elements window state supported window state window state supported window states next element if window state equals supported window state state window state return throw new window state exception unsupported window state used window state window state
|
indicates the window state the portlet should be in if this
|
public void set portlet mode portlet mode portlet mode throws portlet mode exception if is portlet mode supported portlet mode mode portlet mode return throw new portlet mode exception unsupported portlet mode used portlet mode portlet mode
|
indicates the portlet mode the portlet must be in if this
|
public void set parameter string name string value if name null value null throw new illegal argument exception name and value must not be null map with parameters put in string list parameters name value
|
sets the given string parameter to this url
|
public void set parameter string name string values if name null values null values length 0 throw new illegal argument exception name and values must not be null or values be an empty array map with parameters put in string list parameters name values
|
sets the given string array parameter to this url
|
public void set secure boolean secure throws portlet security exception this implementation does assume not having a supporting security environment installed if secure throw new portlet security exception the current implementation does assume not having a supporting security environment installed this secure secure
|
indicated the security setting for this url
|
public void set max inactive interval int interval http session set max inactive interval interval if log is debug enabled log debug session timeout set to interval
|
specifies the time in seconds between client requests before the
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.