congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.apache.wicket.protocol.https
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.wicket.protocol.https

Best Java code snippets using org.apache.wicket.protocol.https (Showing top 20 results out of 315)

origin: org.apache.wicket/wicket-core

  @Override
  public int getPort(HttpsConfig config)
  {
    return config.getHttpPort();
  }
},
origin: apache/wicket

@Override
public boolean usesStandardPort(HttpsConfig config)
{
  return getPort(config) == 443;
}
origin: apache/wicket

@Override
public boolean usesStandardPort(HttpsConfig config)
{
  return getPort(config) == 80;
}
origin: apache/wicket

@Override
public final IRequestHandler mapRequest(Request request)
{
  IRequestHandler handler = delegate.mapRequest(request);
  Scheme desired = getDesiredSchemeFor(handler);
  Scheme current = getSchemeOf(request);
  if (!desired.isCompatibleWith(current))
  {
    // we are currently on the wrong scheme for this handler
    // construct a url for the handler on the correct scheme
    String url = createRedirectUrl(handler, request, desired);
    // replace handler with one that will redirect to the created url
    handler = createRedirectHandler(url);
  }
  return handler;
}
origin: org.ops4j.pax.wicket/pax-wicket-service

/** {@inheritDoc} */
@Override
public IRequestTarget resolve(RequestCycle rc, RequestParameters rp)
{
  if (portConfig != null && portConfig.isPreferStateful())
  {
    // we need to persist the session before a redirect to https so the session lasts across
    // both http and https calls.
    Session.get().bind();
  }
  IRequestTarget target = super.resolve(rc, rp);
  return checkSecure(target);
}
origin: brix-cms/brix-cms

/**
 * Creates the {@link IRequestHandler} that will be responsible for the
 * redirect
 *
 * @param url
 * @return request handler
 */
protected IRequestHandler createRedirectHandler(String url) {
  return new HttpsMapper.RedirectHandler(url, config);
}
origin: org.apache.wicket/wicket-core

  @Override
  public int getPort(HttpsConfig config)
  {
    return config.getHttpsPort();
  }
},
origin: org.apache.wicket/wicket-core

/**
 * @return scheme's url name
 */
public String urlName()
{
  return name().toLowerCase(Locale.ROOT);
}
origin: apache/wicket

@Override
public final Url mapHandler(IRequestHandler handler)
{
  return mapHandler(handler, RequestCycle.get().getRequest());
}
origin: de.alpharogroup/jaulp-wicket-base

/**
 * Implement this interface if webpages should be accessible only over ssl(https). You can secure
 * webpages by implementing this interface.
 *
 * @author Asterios Raptis
 */
@RequireHttps
public interface SSLable
{
}

origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Returns a target that can be used to redirect to the specified protocol. If no change is
 * required null will be returned.
 * 
 * @param protocol
 *            required protocol
 * @return request target or null
 */
public static IRequestTarget requireProtocol(Protocol protocol)
{
  return requireProtocol(protocol, null);
}
origin: org.apache.wicket/wicket-core

@Override
public final IRequestHandler mapRequest(Request request)
{
  IRequestHandler handler = delegate.mapRequest(request);
  Scheme desired = getDesiredSchemeFor(handler);
  Scheme current = getSchemeOf(request);
  if (!desired.isCompatibleWith(current))
  {
    // we are currently on the wrong scheme for this handler
    // construct a url for the handler on the correct scheme
    String url = createRedirectUrl(handler, request, desired);
    // replace handler with one that will redirect to the created url
    handler = createRedirectHandler(url);
  }
  return handler;
}
origin: org.apache.wicket/wicket-core

/**
 * Creates the {@link IRequestHandler} that will be responsible for the redirect
 * 
 * @param url
 * @return request handler
 */
protected IRequestHandler createRedirectHandler(String url)
{
  return new RedirectHandler(url, config);
}
origin: apache/wicket

  @Override
  public int getPort(HttpsConfig config)
  {
    return config.getHttpPort();
  }
},
origin: apache/wicket

  @Override
  public int getPort(HttpsConfig config)
  {
    return config.getHttpsPort();
  }
},
origin: org.apache.wicket/wicket-core

@Override
public boolean usesStandardPort(HttpsConfig config)
{
  return getPort(config) == 443;
}
origin: org.apache.wicket/wicket-core

@Override
public boolean usesStandardPort(HttpsConfig config)
{
  return getPort(config) == 80;
}
origin: apache/wicket

/**
 * @return scheme's url name
 */
public String urlName()
{
  return name().toLowerCase(Locale.ROOT);
}
origin: org.apache.wicket/wicket-core

@Override
public final Url mapHandler(IRequestHandler handler)
{
  return mapHandler(handler, RequestCycle.get().getRequest());
}
origin: apache/wicket

/**
 * Creates the {@link IRequestHandler} that will be responsible for the redirect
 * 
 * @param url
 * @return request handler
 */
protected IRequestHandler createRedirectHandler(String url)
{
  return new RedirectHandler(url, config);
}
org.apache.wicket.protocol.https

Most used classes

  • HttpsConfig
    Configuration for http-https switching
  • Scheme
    Url scheme
  • HttpsMapper
    A IRequestMapper that will issue a redirect to secured communication (over https) if the page resolv
  • HttpsMapper$RedirectHandler
    Handler that takes care of redirecting
  • HttpsRequestCycleProcessor
    Request cycle processor that can switch between http and https protocols based on the RequireHttps a
  • Scheme$1,
  • Scheme$2,
  • SwitchProtocolRequestTarget$Protocol,
  • SwitchProtocolRequestTarget
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now