List of usage examples for java.lang Boolean FALSE
Boolean FALSE
To view the source code for java.lang Boolean FALSE.
Click Source Link
From source file:com.ejie.x38.webdav.WebdavSpringServlet.java
@PostConstruct public void init() throws ServletException { try {/* ww w. ja v a 2 s .c o m*/ MD5_HELPER = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException e) { throw new IllegalStateException(); } if (this.noContentLengthHeaders == null) { this.noContentLengthHeaders = new Integer(0); } if (this.lazyFolderCreationOnPut == null) { this.lazyFolderCreationOnPut = Boolean.FALSE; } // Inicializacin del componente de locking if (this.resourceLocks == null) { LOG.error("No se ha configurado correctamente el gestor de locking de webDav"); throw new WebdavException("No se ha configurado correctamente el gestor de locking de webDav"); } WebDavServletHelper.registerWebDavMethods(webDavStore, _methodMap, defaultIndexFile, insteadOf404, resourceLocks, noContentLengthHeaders, lazyFolderCreationOnPut, null); }
From source file:za.co.dwarfsun.jobcardmanager.test.repository.AttributeRepositoryTest.java
@Test(dependsOnMethods = "readAttribute", enabled = false) public void updateAttribute() { attributeRepository = ctx.getBean(AttributeRepository.class); Attribute attribute = attributeRepository.findOne(id); Attribute updatedAttribute = new Attribute.Builder("Use Code").Attribute(attribute).field("dor_cd") .iskey(Boolean.FALSE).build(); attributeRepository.save(updatedAttribute); Attribute newAttribute = attributeRepository.findOne(id); Assert.assertEquals(newAttribute.getDescription(), "Parcel Number"); Assert.assertEquals(newAttribute.getField(), "dor_cd"); }
From source file:components.TextSamplerDemo.java
public static void main(String[] args) { //Schedule a job for the event dispatching thread: //creating and showing this application's GUI. SwingUtilities.invokeLater(new Runnable() { public void run() { //Turn off metal's use of bold fonts UIManager.put("swing.boldMetal", Boolean.FALSE); createAndShowGUI();// w w w . ja v a2s .com } }); }
From source file:com.adito.extensions.actions.GetExtensionDescriptorAction.java
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { request.setAttribute(Constants.REQ_ATTR_COMPRESS, Boolean.FALSE); String ticket = request.getParameter("ticket"); String id = request.getParameter("id"); if (id == null) { throw new Exception("No id"); }/*from w ww . j a v a2 s. co m*/ ExtensionDescriptor app = ExtensionStore.getInstance().getExtensionDescriptor(id); if (app == null) { throw new Exception("No extension with id of " + id); } Properties properties = new Properties(); for (Enumeration e = request.getParameterNames(); e.hasMoreElements();) { String name = (String) e.nextElement(); String val = request.getParameter(name); if (name.equals("ticket") || name.equals("id") || name.equals("name")) { continue; } else { properties.put(name, val); } } processApplicationRequest(app, ticket, request, response, properties); return null; }
From source file:com.soule.base.service.DefaultService.java
public final Boolean saveRecord(String tableName, Serializable record) { try {//from w w w. j a v a 2 s.c o m this.ibatisMediator.save(SAVE + tableName, record); return Boolean.TRUE; } catch (DbAccessException e) { logger.debug("", e); } return Boolean.FALSE; }
From source file:com.ewcms.mongo.demo.web.PersonController.java
@RequestMapping(value = "/save.action", method = RequestMethod.POST) public String save(@ModelAttribute("person") Person person, @RequestParam(required = false) List<String> selections, Model model) { Boolean close = Boolean.FALSE; if (StringUtils.hasText(person.getId())) { repository.save(person);//from ww w . jav a 2s.c o m selections.remove(0); if (selections == null || selections.isEmpty()) { close = Boolean.TRUE; } else { person = repository.findOne(selections.get(0)); model.addAttribute("person", person); model.addAttribute("selections", selections); } } else { repository.save(person); selections = selections == null ? new ArrayList<String>() : selections; selections.add(0, person.getId()); model.addAttribute("person", new Person()); model.addAttribute("selections", selections); } model.addAttribute("close", close); return "person/edit"; }
From source file:se.backede.jeconomix.forms.report.TransactionsTotalReport.java
public void addLineChart(Map<String, List<TransactionReportDto>> reports) { JFreeChart lineChart = ChartFactory.createLineChart("Total", "Month", "Kronor", ReportUtils.createDataset(reports, Boolean.FALSE), PlotOrientation.VERTICAL, true, true, true); ChartPanel chartPanel = new ChartPanel(lineChart); chartPanel.setPreferredSize(new java.awt.Dimension(lineChartPanel.getWidth(), lineChartPanel.getHeight())); lineChartPanel.setLayout(new BorderLayout()); lineChartPanel.add(chartPanel, BorderLayout.NORTH); }
From source file:org.apache.camel.component.http4.HttpEntityConverter.java
private static HttpEntity asHttpEntity(byte[] data, Exchange exchange) throws Exception { InputStreamEntity entity;//w ww.j ava 2 s . co m if (exchange != null && !exchange.getProperty(Exchange.SKIP_GZIP_ENCODING, Boolean.FALSE, Boolean.class)) { String contentEncoding = exchange.getIn().getHeader(Exchange.CONTENT_ENCODING, String.class); InputStream stream = GZIPHelper.compressGzip(contentEncoding, data); entity = new InputStreamEntity(stream, stream instanceof ByteArrayInputStream ? stream.available() != 0 ? stream.available() : -1 : -1); } else { entity = new InputStreamEntity(new ByteArrayInputStream(data), data.length); } if (exchange != null) { String contentEncoding = exchange.getIn().getHeader(Exchange.CONTENT_ENCODING, String.class); String contentType = ExchangeHelper.getContentType(exchange); entity.setContentEncoding(contentEncoding); entity.setContentType(contentType); } return entity; }
From source file:com.civis.utils.html.parser.HtmlParseFilter.java
public Boolean matchLink(String link) { if (linkMatcherList.isEmpty()) { //is empty, that means this filter is deactivated and always true. return Boolean.TRUE; }// w w w .ja v a 2s . c o m for (String linkMatcher : linkMatcherList) { if (link.contains(linkMatcher)) { return Boolean.TRUE; } } return Boolean.FALSE; }