Examples of WebContext


Examples of org.apache.tapestry.web.WebContext

        context.getInitParameterNames();
        control.setReturnValue(newEnumeration());

        replayControls();

        WebContext wc = new PortletWebContext(context);

        List l = wc.getInitParameterNames();

        checkList(l);

        verifyControls();
    }
View Full Code Here

Examples of org.directwebremoting.WebContext

    private static Decipherer decipherer;
    private static Cipherer cipherer;
    private static Log log = LogFactory.getLog(EncryptedUUIDConverter.class);

    protected void initEncryption() {
        WebContext webCtx = WebContextFactory.get();
        WebApplicationContext springContext = RequestContextUtils.getWebApplicationContext(webCtx.getHttpServletRequest(), webCtx.getServletContext());
        decipherer = (Decipherer) springContext.getBean("cryptographyManager");
        cipherer = (Cipherer) decipherer;
        if (log.isInfoEnabled()) log.info("UUID converter found cipherer/decipherer: " + decipherer.getClass().getName());
    }
View Full Code Here

Examples of org.directwebremoting.WebContext

    private static Decipherer decipherer;
    private static Cipherer cipherer;
    private static Log log = LogFactory.getLog(EncryptedClassConverter.class);

    protected void initEncryption() {
        WebContext webCtx = WebContextFactory.get();
        WebApplicationContext springContext = RequestContextUtils.getWebApplicationContext(webCtx.getHttpServletRequest(), webCtx.getServletContext());
        decipherer = (Decipherer) springContext.getBean("cryptographyManager");
        cipherer = (Cipherer) decipherer;
        if (log.isInfoEnabled()) log.info("Class converter found cipherer/decipherer: " + decipherer.getClass().getName());
    }
View Full Code Here

Examples of org.directwebremoting.WebContext

        return getViewPointData(user, view, edit);
    }

    private List<ViewComponentState> getViewPointData(User user, GraphicalView view, boolean edit) {
        WebContext webContext = WebContextFactory.get();
        HttpServletRequest request = webContext.getHttpServletRequest();
        List<ViewComponentState> states = new ArrayList<ViewComponentState>();
        Map<String, Object> model = new HashMap<String, Object>();

        for (ViewComponent viewComponent : view.getViewComponents()) {
            if (viewComponent.isCompoundComponent() && (edit || viewComponent.isVisible())) {
View Full Code Here

Examples of org.directwebremoting.WebContext

      return dane;

    } catch (Exception e) {
      e.printStackTrace();
      //pobranie req przy Ajaxie DWR
      WebContext ctx = WebContextFactory.get();
      HttpServletRequest req = ctx.getHttpServletRequest();
      throw new Exception(MessageUtil.getMessage("stanowiska.table.exception", req.getLocale()));
    }
  }
View Full Code Here

Examples of org.directwebremoting.WebContext

      return dane;

    } catch (Exception e) {
      e.printStackTrace();
      //pobranie req przy Ajaxie DWR
      WebContext ctx = WebContextFactory.get();
      HttpServletRequest req = ctx.getHttpServletRequest();
      throw new Exception(MessageUtil.getMessage("stanowiska.table.exception", req.getLocale()));
    }
   
  }
View Full Code Here

Examples of org.directwebremoting.WebContext

    return response;
   
  }
 
  public String cos(){
    WebContext webContext = WebContextFactory.get();
    ServletContext servletContext = webContext.getServletContext();

    ServerContext serverContext = ServerContextFactory.get(servletContext);
    Iterator iterator = serverContext.getAllScriptSessions().iterator();
    String currentPage = webContext.getCurrentPage();
    serverContext.getScriptSessionsByPage(currentPage);
    while(iterator.hasNext()){
      ScriptProxy proxy = new ScriptProxy((ScriptSession) iterator.next());
      proxy.addFunctionCall("redirect");
    }
View Full Code Here

Examples of org.directwebremoting.WebContext

     * @deprecated Use WebContextFactory.get() for better results
     */
    @Deprecated
    public static ExecutionContext get()
    {
        WebContext context = WebContextFactory.get();
        if (context == null)
        {
            return null;
        }

View Full Code Here

Examples of org.jboss.ws.api.annotation.WebContext

     *
     * @param endpoint EJB webservice endpoint
     * @return authentication method or null if not specified
     */
    public String getAuthMethod(final Endpoint endpoint) {
        final WebContext webContext = this.getWebContextAnnotation(endpoint);
        final boolean hasAuthMethod = (webContext != null) && (webContext.authMethod().length() > 0);

        return hasAuthMethod ? webContext.authMethod() : super.getAuthMethod(endpoint);
    }
View Full Code Here

Examples of org.jboss.wsf.spi.annotation.WebContext

    * @param endpoint EJB webservice endpoint
    * @return authentication method or null if not specified
    */
   public String getAuthMethod(final Endpoint endpoint)
   {
      final WebContext webContext = this.getWebContextAnnotation(endpoint);
      final boolean hasAuthMethod = (webContext != null) && (webContext.authMethod().length() > 0);

      return hasAuthMethod ? webContext.authMethod() : super.getAuthMethod(endpoint);
   }
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.