Package i2p.susi.dns
Class NamingServiceBean
- java.lang.Object
-
- i2p.susi.dns.BaseBean
-
- i2p.susi.dns.AddressbookBean
-
- i2p.susi.dns.NamingServiceBean
-
public class NamingServiceBean extends AddressbookBean
Talk to the NamingService API instead of modifying the hosts.txt files directly, except for the 'published' addressbook.- Since:
- 0.8.7
-
-
Field Summary
-
Fields inherited from class i2p.susi.dns.AddressbookBean
beginIndex, book, deletionMarks, destination, endIndex, entries, filter, hostname, search, sorter
-
Fields inherited from class i2p.susi.dns.BaseBean
_context, action, lastSerial, PROP_PW_ENABLE, properties, serial
-
-
Constructor Summary
Constructors Constructor Description NamingServiceBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexport(Writer out)StringgetDisplayName()StringgetFileName()StringgetLoadBookMessages()Load addressbook and apply filter, returning messages about this.AddressBeangetLookup()List<AddressBean>getLookupAll()StringgetMessages()Perform actions, returning messages about this.booleanhaveImagegen()StringimportFile(RequestWrapper wrequest)booleanisNotEmpty()protected booleanisPrefiltered()Does the entries map contain only the lookup result, or must we index into it?protected intresultSize()voidsaveNotes()voidsetH(String h)voidsetNofilter_notes(String n)protected inttotalSize()-
Methods inherited from class i2p.susi.dns.AddressbookBean
generateLoadMessage, getBegin, getBeginInt, getBook, getDestination, getEnd, getEndInt, getEntries, getFilter, getHostname, getResultBegin, getResultEnd, getSearch, getTrClass, isHasFilter, isIsEmpty, isValidBook, setBegin, setBook, setDestination, setEnd, setFilter, setHostname, setMarkedForDeletion, setResetDeletionMarks, setSearch, setTrClass
-
-
-
-
Method Detail
-
isPrefiltered
protected boolean isPrefiltered()
Description copied from class:AddressbookBeanDoes the entries map contain only the lookup result, or must we index into it?- Overrides:
isPrefilteredin classAddressbookBean
-
resultSize
protected int resultSize()
- Overrides:
resultSizein classAddressbookBean- Returns:
- the size of the lookup result
-
totalSize
protected int totalSize()
- Overrides:
totalSizein classAddressbookBean- Returns:
- the total size of the address book
-
isNotEmpty
public boolean isNotEmpty()
- Overrides:
isNotEmptyin classAddressbookBean
-
getFileName
public String getFileName()
- Overrides:
getFileNamein classAddressbookBean
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayNamein classAddressbookBean
-
getLoadBookMessages
public String getLoadBookMessages()
Load addressbook and apply filter, returning messages about this. To control memory, don't load the whole addressbook if we can help it... only load what is searched for.- Overrides:
getLoadBookMessagesin classAddressbookBean
-
getMessages
public String getMessages()
Perform actions, returning messages about this.- Overrides:
getMessagesin classAddressbookBean
-
saveNotes
public void saveNotes()
- Since:
- 0.9.35
-
setH
public void setH(String h)
-
setNofilter_notes
public void setNofilter_notes(String n)
- Since:
- 0.9.35
-
getLookup
public AddressBean getLookup()
-
getLookupAll
public List<AddressBean> getLookupAll()
- Since:
- 0.9.26
-
export
public void export(Writer out) throws IOException
- Throws:
IOException- Since:
- 0.9.20
-
importFile
public String importFile(RequestWrapper wrequest) throws IOException
- Returns:
- messages about this action
- Throws:
IOException- Since:
- 0.9.40
-
haveImagegen
public boolean haveImagegen()
- Since:
- 0.9.34
-
-