Examples of Mapper


Examples of org.olat.core.dispatcher.mapper.Mapper

    functionCallsVC.contextPut("selectPath", Boolean.FALSE);
    functionCallsVC.contextPut("reloadPath", Boolean.FALSE);
    functionCallsVC.contextPut("removePath", Boolean.FALSE);

    // The data mapper provides the dynamic data model to the view
    treeDataMapper = new Mapper() {
      public MediaResource handle(String relPath, HttpServletRequest request) {
        // each call is done for a specific node: get the child elements
        // for this node
        String data;
        String nodeId = request.getParameter(PARAM_NODE);
View Full Code Here

Examples of org.olat.core.dispatcher.mapper.Mapper

   * @param uSess
   *            The user session (needed to register the mapper)
   */
  public CustomCSS(final VFSContainer cssBaseContainer,
      final String relCssFilename, UserSession uSess) {
    cssUriMapper = new Mapper() {
      public MediaResource handle(String relPath,
          HttpServletRequest request) {
        VFSItem vfsItem = cssBaseContainer.resolve(relPath);
        MediaResource mr;
        if (vfsItem == null || !(vfsItem instanceof VFSLeaf))
View Full Code Here

Examples of org.olat.core.dispatcher.mapper.Mapper

    //more debug information: OLAT-3529
    if (ajaxEnabled) myContent.contextPut("isAdmin", Boolean.valueOf(ureq.getUserSession().getRoles().isOLATAdmin()));
   
    // create a mapper to not block main traffic when polling (or vica versa)
    final Window window = wboImpl.getWindow();
    m = new Mapper() {
      public MediaResource handle(String relPath, HttpServletRequest request) {
        pollCount++;
        // check for dirty components now.
        wboImpl.fireCycleEvent(Window.BEFORE_INLINE_RENDERING);
        Command updateDirtyCom = window.handleDirties();
View Full Code Here

Examples of org.springframework.binding.mapping.Mapper

  hotel.setId(1L);
  hotel.setName("Jameson Inn");
  getFlowScope().put("hotel", hotel);

  Flow mockBookingFlow = new Flow("booking");
  mockBookingFlow.setInputMapper(new Mapper() {
      public MappingResults map(Object source, Object target) {
    assertEquals(new Long(1), ((AttributeMap) source).get("hotelId"));
    return null;
      }
  });
View Full Code Here

Examples of org.switchyard.component.camel.switchyard.util.Mapper

    @Test
    public void contextMapperMapToTest() throws InterruptedException {
        _mock.expectedBodiesReceived(PAYLOAD);
        _mock.expectedHeaderReceived(Mapper.PROPERTY, Mapper.VALUE);

        Exchange exchange = createExchange(new CamelMessageComposer().setContextMapper(new Mapper()));
        exchange.send(exchange.createMessage().setContent(PAYLOAD));
        _mock.assertIsSatisfied();
    }
View Full Code Here

Examples of speculoos.core.Mapper

      push(v);
    }

    public void endElement(String uri, String localName, String qName)
        throws SAXException {
      Mapper v = (Mapper) pop();
      ((MapperCollector) current).addMapper(v);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.