input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void start string host throws exception log debug host host this host host this server new server connector connector new local connector this server add connector connector this servlet paths new linked list string add servlets add servlet configuration servlet class configuration servlet path add servlet crl servlet class crl servlet path add servlet ocsp servlet class ocsp servlet path add servlet certificate servlet class certificate servlet path add servlet private key servlet class private key servlet path server start create socket connector save static for access in servlets test pki this log debug test ca started
|
start embedded jetty for this test pki
|
public void stop throws exception this server stop log debug test ca stopped
|
stop embedded jetty for this test pki
|
public void remove ca string ca name log debug remove ca configuration ca name check roots if null root cas get ca name root cas remove ca name return nope check deeper for caconfiguration root root cas values remove ca ca name root
|
remove specified ca configuration
|
public caconfiguration find ca string ca name check roots caconfiguration ca config root cas get ca name if null ca config return ca config nope check deeper for caconfiguration root root cas values ca config find ca ca name root if null ca config return ca config return null
|
find specified ca configuration
|
public void generate throws exception log debug generate for caconfiguration ca config root cas values ca config generate log debug generation finished
|
generate the pki tree from the configuration
|
public string get serial number return this serial number
|
hsqldb hibernate has problems with mapping a big integer correctly
|
private boolean is indirect crl x509 crl crl throws crlexception byte idp crl get extension value x509 extensions issuing distribution point get id boolean is indirect false try if idp null is indirect issuing distribution point get instance x509 extension util from extension value idp is indirect crl catch exception e throw new crlexception exception reading issuing distribution point e return is indirect
|
returns if the specified crl is indirect
|
private void init timers for trust point entity trust point this trust domain dao list trust points try this scheduling service start timer trust point catch invalid cron expression exception e throw new runtime exception string format failed to start timer for trustpoint s trust point get name e clock drift config entity clock drift config this configuration dao find clock drift config if null clock drift config clock drift config is enabled try this scheduling service start timer clock drift config catch invalid cron expression exception e throw new runtime exception failed to start timer for clockdrift config e
|
initialize timers for all trust points found and the clock drift config
|
public void set logging boolean logging if logging register logger handler this port else remove logger handler this port
|
enables disables logging of all soap requests responses
|
public void set server certificate x509 certificate server certificate this server certificate server certificate
|
set the optional server
|
public void set proxy string proxy host int proxy port xkms2 client proxy selector set proxy this location proxy host proxy port
|
proxy configuration setting both http as https
|
public void set proxy string location string proxy host int proxy port string hostname try hostname new url location get host catch malformed urlexception e throw new runtime exception url error e get message e if null proxy host log debug removing proxy for hostname this proxies remove hostname else log debug setting proxy for hostname this proxies put hostname new proxy type http new inet socket address proxy host proxy port
|
sets the proxy for a certain location url
|
public void set server certificate x509 certificate server certificate this ws security client handler set server certificate server certificate
|
set the optional server
|
protected void register logger handler object port binding provider binding provider binding provider port binding binding binding provider get binding suppress warnings unchecked list handler handler chain binding get handler chain handler chain add new logging soap handler binding set handler chain handler chain
|
registers the logging soap handler on the given jax ws port component
|
protected void remove logger handler object port binding provider binding provider binding provider port binding binding binding provider get binding suppress warnings unchecked list handler handler chain binding get handler chain iterator handler iter handler chain iterator while iter has next handler handler iter next if handler instanceof logging soap handler iter remove
|
unregister possible logging soap handlers on the given jax ws port
|
public revocation values type get revocation values return this revocation values
|
return the optionally filled
|
protected void create default preferences system out println creating default preferences for afw application get preferences set default preference extentx 600 get preferences set default preference extenty 400 get preferences set default preference positionx 20 get preferences set default preference positiony 20 get preferences set default preference language file english lap
|
create default preferences
|
public void set value object value throws property veto exception object old value get value vetoable change support fire vetoable change value old value value this value value property change support fire property change value old value value
|
set a new value in this value holder
|
public void add vetoable change listener vetoable change listener listener vetoable change support add vetoable change listener listener
|
add a vetoable change listener if you want to have control over
|
public void remove vetoable change listener vetoable change listener listener vetoable change support remove vetoable change listener listener
|
stop listening for changes of the value
|
public view create view class view class return create view view class new value holder
|
this method creates a view on an empty value valuemodel
|
public view create view class view class value model value model view view null try view view view class new instance catch instantiation exception ie catch illegal access exception iae if view null view set value model value model view initialize widgets this return view
|
this method creates a view on the given value valuemodel
|
public void write ecapfile file writer fd buffered writer write file string write line ecapfile name parent frame application get preference acap file system out println ecapfile name try fd new file writer ecapfile name write file new buffered writer fd if ext text area get selected text null system out println please select a text else write file write ext text area get selected text write file close catch exception e some place for a msg box
|
description of the method
|
public void key pressed key event event if event get key code key event vk c key event vk control key event vk shift if event get key code key event vk p key event vk control key event vk shift
|
description of the method
|
public void run extended runtime rtm extended runtime get runtime try if dir null dir if dir equals proc rtm exec cmdline else proc rtm exec cmdline dir new stream fetcher proc run catch ioexception e
|
main processing method for the exe command object
|
public void build constraints grid bag constraints gbc int gx int gy int gw int gh int wx int wy gbc gridx gx gbc gridy gy gbc gridwidth gw gbc gridheight gh gbc weightx wx gbc weighty wy
|
useful for creating layouts save a lot of programming stuff
|
public void set properties hashtable props this props props
|
sets the extended runtime object properties to the i properties i
|
public void lost ownership clipboard clipboard transferable content
|
do nthing yet
|
protected void center at screen try dimension dim get toolkit get screen size rectangle abounds get bounds set location dim width abounds width 2 dim height abounds height 2 catch exception exception probably not visible
|
centers the frame in the middle of the screen
|
public hashtable get properties return props
|
determines the current extended runtime object properties
|
private void execute it string cmd string array boolean new thread extended runtime rtm extended runtime get runtime this cmdline cmd string array try if new thread thread worker new thread this worker start not run else if dir null dir if dir equals proc rtm exec cmd string array else proc rtm exec cmd string array dir new stream fetcher proc run catch ioexception e
|
executes the stuff
|
private void set window listener this add window listener new window adapter description of the method param event description of parameter public void window closing window event event close frame
|
sets the window listener attribute of the extended frame object
|
public void window closing window event event close frame
|
description of the method
|
public void extended panel this set layout new grid bag layout
|
description of the method
|
public void add component component component to add this add component to add
|
adds a feature to the component attribute of the extended panel object
|
public process exec string command string dir throws ioexception return exec command null dir
|
executes the specified string command in aspecified directory as a separate
|
public void set font string font name string font style int font size int tmp style if font style equals bold tmp style font bold else if font style equals italic tmp style font italic else tmp style font plain get painter set font new font font name tmp style font size
|
setting font fontsize and style in extended text area
|
public process exec string cmdarray string dir throws ioexception return exec cmdarray null dir
|
executes the specified string command in aspecified directory as a separate
|
public void add line string line try this get document insert string this get document get length line n null catch javax swing text bad location exception e
|
adds a line and the systemdependent line separator
|
public void exit int status rtm exit status
|
description of the method
|
public void copy to clipboard copy
|
copys the content of the current selection to the system clipboard
|
public void center at screen try dimension dim get toolkit get screen size rectangle abounds get bounds set location dim width abounds width 2 dim height abounds height 2 catch exception exception probably not visible
|
centers the frame in the middle of the screen
|
public void cut to clipboard cut
|
cuts the current selection to the system clipboard
|
public process exec string command throws ioexception return rtm exec command
|
description of the method
|
public void paste from clipboard paste
|
pastes the content of the system clipboard to the current caret position
|
private void set default font try this set font sans serif plain 12 catch exception exception don t set the font
|
sets the default font attribute of the extended text area object
|
public int compare object a object b string string a remove all before this character from string a character to cut string string b remove all before this character from string b character to cut return string a compare to string b
|
description of the method
|
public process exec string command string envp throws ioexception return rtm exec command envp
|
description of the method
|
public int read throws ioexception offset char cbuf new char 1 int tmp this read cbuf 0 1 if tmp 1 return 1 return cbuf 0
|
the buffered readers read method extended to count the offset in the file
|
public int compare object a object b return string a compare to string b
|
description of the method
|
public void write byte b int off int len throws ioexception try document doc eta get document string tmp string n system err doc insert string eta get caret position tmp string new string b off len null catch exception e throw new ioexception e get message
|
this is called when data is there
|
public process exec string cmdarray throws ioexception return rtm exec cmdarray
|
description of the method
|
public void write byte b int off int len throws ioexception try document doc eta get document string tmp string n system out doc insert string eta get caret position tmp string new string b off len null catch bad location exception e throw new ioexception e get message
|
this is called when data is there
|
public object next element where am i return entries where am i 1
|
like enumeration returns the next element
|
public process exec string cmdarray string envp throws ioexception return rtm exec cmdarray envp
|
description of the method
|
public string get extension file file if file null string filename file get name int i filename last index of if i 0 i filename length 1 return filename substring i 1 to lower case return null
|
gets the extension attribute of the extended file filter object
|
public boolean has more elements if where am i how much return false else return true
|
like enumeration returns true if there are elements
|
public boolean accept file file if file null if file is directory return true string extension get extension file if ext equals extension return true return false
|
do not call directly it is called by jfile chooser
|
public vector as vector vector vec new vector int array length entries length array length int i 0 while array length 0 i vec add element entries i array length return vec
|
returns a sorted vector
|
public long free memory return rtm free memory
|
description of the method
|
public void read config file string file name buffered reader reader try reader new buffered reader new file reader file name string key string value while key reader read line null value reader read line null system set property application properties key value application property keys add key reader close catch file not found exception exception system out println problems reading the application config file exception print stack trace return catch ioexception exception system out println problems reading the application config file exception print stack trace
|
reads the defaultconfig of application from a filename
|
private string remove all before this character from string cut from me char character to cut try if cut from me last index of character to cut 1 return cut from me substring cut from me last index of character to cut 1 cut from me length catch exception e don t care return cut from me
|
internal method to cut all letters before the last occurence of a character
|
protected void create default config application property keys clear
|
creates default keys values for application properties
|
public long total memory return rtm total memory
|
description of the method
|
public void gc rtm gc
|
description of the method
|
public void run finalization rtm run finalization
|
description of the method
|
public void trace instructions boolean on rtm trace instructions on
|
description of the method
|
public void trace method calls boolean on rtm trace method calls on
|
description of the method
|
public void load string filename rtm load filename
|
description of the method
|
public void load library string libname rtm load library libname
|
description of the method
|
protected void set string in ide string value source code text area set text value
|
sets the string in the ide
|
protected string get string from ide return source code text area get text
|
gets the initial string from the ide
|
private void display error message joption pane show message dialog null system get property application language dictionary unable to parse the code system get property application language dictionary parse error joption pane error message
|
displays the error message
|
public boolean is ok button return is ok button
|
gets the ok button attribute of the ideproject option dialog object
|
public void center at screen dimension dim get toolkit get screen size rectangle abounds get bounds set location dim width abounds width 2 dim height abounds height 2
|
description of the method
|
public void cancel last find string find get text is ignore case ignore case is selected dispose
|
description of the method
|
public void undoable edit happened undoable edit event e undo vector add e get edit while undo vector size new integer application get preference undo count int value undo vector remove 0 if undo vector size 0 m edit undo set enabled false else m edit undo set enabled true
|
description of the method
|
public boolean find int start if find get text equals return false last find string find get text is ignore case ignore case is selected string text eta get text start eta get text length start boyer moore search matcher matcher new boyer moore search matcher find get text replace get text ignore case is selected int match matcher next match text if match null eta select start match 0 start match 1 return true else return false
|
description of the method
|
private void dispose or keep dialog return if keep dialog get model is selected return dispose
|
description of the method
|
private void set buttons b ok new jbutton string system get property application language dictionary b ok b ok set bounds 15 400 150 30 get content pane add b ok b cancel new jbutton string system get property application language dictionary b cancel b cancel set bounds 170 400 150 30 get content pane add b cancel b ok add action listener this b cancel add action listener this
|
sets the buttons attribute of the ideproject option dialog object
|
public void action performed action event evt object source evt get source if source cancel cancel if source find btn int start eta get selection end if find start get toolkit beep else if source replace selection int start eta get selection end find replace the stuff if find start get toolkit beep else eta set selected text replace get text else if source replace all int start eta get selection end while find start eta set selected text replace get text start eta get selection end
|
description of the method
|
private key listener get find key listener return new key listener description of the method param e description of parameter public void key pressed key event e if e get key code key event vk enter int start eta get selection end if find start get toolkit beep if e get key code key event vk escape cancel description of the method param e description of parameter public void key released key event e description of the method param e description of parameter public void key typed key event e
|
gets the find key listener attribute of the search dialog object
|
public void key pressed key event e if e get key code key event vk enter int start eta get selection end if find start get toolkit beep if e get key code key event vk escape cancel
|
description of the method
|
private void initialize panels general load values application source load values additional source load values other load values packages load values different load values
|
description of the method
|
public void key pressed key event e if e get key code key event vk enter int start eta get selection end find replace the stuff if find start get toolkit beep else eta set selected text replace get text if e get key code key event vk escape cancel
|
description of the method
|
public void update content boolean update theme int which position text area get caret position string text text area get text if update theme swing utilities update component tree ui this text area set text text text area set caret position which position
|
description of the method
|
private void save general save application source save additional source save other save packages save different save
|
description of the method
|
public void action performed action event event if event get source b ok this dispose
|
something happend in case of button b ok close me
|
public void update editor font int size 12 try size new integer application get preference editor font size int value catch exception e text area set font application get preference editor font application get preference editor font style size try text area get document put property plain document tab size attribute new integer application get preference editor tab space catch exception e e print stack trace
|
description of the method
|
public void save if use different stuff is selected parent app project put use different stuff true else parent app project put use different stuff false string string value tf java int get text parent app project put different java interpreter file string value string value tf java comp get text parent app project put different java compiler file string value string value tf def java class dir get text parent app project put different java classes directory string value string value different java help file text field get text parent app project put different java help file string value
|
save the values from the panel
|
public void load values if new boolean parent app get project prop use different stuff boolean value use different stuff set selected true else use different stuff set selected false tf java int set text string parent app project get different java interpreter file tf java comp set text string parent app project get different java compiler file tf def java class dir set text string parent app project get different java classes directory different java help file text field set text string parent app project get different java help file
|
sets the values in the panel
|
public void action performed action event event if event get source java interpreter button open file dialog for text field tf java int jfile chooser files only return if event get source java compiler button open file dialog for text field tf java comp jfile chooser files only return if event get source java def class button open file dialog for text field tf def java class dir jfile chooser files only return if event get source different help file button open file dialog for text field different java help file text field jfile chooser files only return
|
something is happened
|
public void save string string value tf proj tit get text parent app project put project title string value parent app project put real project directory tf real project directory get text string value tf proj dir get text parent app project put project directory string value string value tfsave log get text parent app project put save log string value string value tf diff java int get text parent app project put project run class string value
|
description of the method
|
public void load values tf proj tit set text get from project hashtable project title tf real project directory set text get from project hashtable real project directory tf proj dir set text get from project hashtable project directory tfsave log set text get from project hashtable save log tf diff java int set text get from project hashtable project run class
|
description of the method
|
public void action performed action event event if event get source save log button open file dialog for text field tfsave log jfile chooser files only return if event get source project classes directory button open file dialog for text field tf proj dir jfile chooser directories only return if event get source real project directory button open file dialog for text field tf real project directory jfile chooser directories only return
|
description of the method
|
public void save object items default list model file list get model to array hashtable tmp hash new hashtable for int i 0 i items length i tmp hash put string items i parent app project put file key tmp hash
|
description of the method
|
public void update frame title if application project null application get project prop project title equals this set title application get name v application get version else this set title application get project prop project title application get name v application get version
|
generates and sets new title for frame
|
public void load values hashtable files hashtable parent app project get file key sorted enumeration enum new sorted enumeration files keys files size false while enum has more elements default list model file list get model add element enum next element
|
description of the method
|
public void action performed action event event if event get source add file vector file vector this add files accept description for int i 0 i file vector size i default list model file list get model add element file file vector element at i to string if event get source remove file this remove selected items
|
description of the method
|
private void touch file file a file if a file exists try new buffered writer new file writer a file close catch ioexception e
|
description of the method
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.