Examples of RedirectAction


Examples of net.sourceforge.urlrewriter4j.core.actions.RedirectAction

    boolean oPermanent = true;
    Node oPermanentNode = pNode.getAttributes().getNamedItem(Constants.ATTR_PERMANENT);
    if (oPermanentNode != null) {
      oPermanent = Boolean.parseBoolean(oPermanentNode.getNodeValue());
    }
    RedirectAction oAction = new RedirectAction(oToNode.getNodeValue(), oPermanent);
    parseConditions(pNode, oAction.getConditions(), false, pConfig);
    return oAction;
  }
View Full Code Here

Examples of net.sourceforge.urlrewriter4j.core.actions.RedirectAction

      boolean oPermanent = true;
      Node oPermNode = pNode.getAttributes().getNamedItem(Constants.ATTR_PERMANENT);
      if (oPermNode != null) {
        oPermanent = Boolean.parseBoolean(oPermNode.getNodeValue());
      }
      return new RedirectAction(oRedirectNode.getNodeValue(), oPermanent);
    }
    return null;
  }
View Full Code Here

Examples of net.sourceforge.urlrewriter4j.core.actions.RedirectAction

  }

  public void testMovedAction() throws Exception {
    RewriterConfiguration oConfiguration = getConfig();

    oConfiguration.getRules().add(new RedirectAction("/foo.aspx", true));

    MockContextFacade oMockFacade = new MockContextFacade("/", ".",
        "GET", new URL("http://localhost/test.aspx"));
    RewriterEngine oEngine = new RewriterEngine(oConfiguration);
    oEngine.rewrite(oMockFacade);
View Full Code Here

Examples of net.sourceforge.urlrewriter4j.core.actions.RedirectAction

  }

  public void testRedirectAction() throws Exception {
    RewriterConfiguration oConfiguration = getConfig();

    oConfiguration.getRules().add(new RedirectAction("/foo.aspx", false));

    MockContextFacade oMockFacade = new MockContextFacade("/", ".",
        "GET", new URL("http://localhost/test.aspx"));
    RewriterEngine oEngine = new RewriterEngine(oConfiguration);
    oEngine.rewrite(oMockFacade);
View Full Code Here

Examples of org.asteriskjava.manager.action.RedirectAction

    public void redirect(String context, String exten, int priority) throws ManagerCommunicationException,
            NoSuchChannelException
    {
        ManagerResponse response;

        response = server.sendAction(new RedirectAction(name, context, exten, priority));
        if (response instanceof ManagerError)
        {
            throw new NoSuchChannelException("Channel '" + name + "' is not available: " + response.getMessage());
        }
    }
View Full Code Here

Examples of org.asteriskjava.manager.action.RedirectAction

    {
        ManagerResponse response;

        if (linkedChannel == null)
        {
            response = server.sendAction(new RedirectAction(name, context, exten, priority));
        }
        else
        {
            response = server.sendAction(new RedirectAction(name, linkedChannel.getName(), context, exten, priority,
                    context, exten, priority));
        }

        if (response instanceof ManagerError)
        {
View Full Code Here

Examples of org.asteriskjava.manager.action.RedirectAction

    public void redirect(String context, String exten, int priority) throws ManagerCommunicationException,
            NoSuchChannelException
    {
        ManagerResponse response;

        response = server.sendAction(new RedirectAction(name, context, exten, priority));
        if (response instanceof ManagerError)
        {
            throw new NoSuchChannelException("Channel '" + name + "' is not available: " + response.getMessage());
        }
    }
View Full Code Here

Examples of org.asteriskjava.manager.action.RedirectAction

    {
        ManagerResponse response;

        if (linkedChannel == null)
        {
            response = server.sendAction(new RedirectAction(name, context, exten, priority));
        }
        else
        {
            response = server.sendAction(new RedirectAction(name, linkedChannel.getName(), context, exten, priority,
                    context, exten, priority));
        }

        if (response instanceof ManagerError)
        {
View Full Code Here

Examples of org.pac4j.core.client.RedirectAction

    @Test
    public void testCustomSpEntityIdForPostBinding() throws Exception {
        Saml2Client client = getClient();
        client.setSpEntityId("http://localhost:8080/callback");
        WebContext context = MockWebContext.create();
        RedirectAction action = client.getRedirectAction(context, true, false);
        assertTrue(getDecodedAuthnRequest(action.getContent())
                .contains(
                        "<saml2:Issuer xmlns:saml2=\"urn:oasis:names:tc:SAML:2.0:assertion\">http://localhost:8080/callback</saml2:Issuer>"));
    }
View Full Code Here

Examples of org.pac4j.core.client.RedirectAction

    @Test
    public void testForceAuthIsSetForPostBinding() throws Exception {
        Saml2Client client = (Saml2Client) getClient();
        client.setForceAuth(true);
        WebContext context = MockWebContext.create();
        RedirectAction action = client.getRedirectAction(context, true, false);
        assertTrue(getDecodedAuthnRequest(action.getContent()).contains("ForceAuthn=\"true\""));
    }
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.