Tabnine Logo
RewriteValve
Code IndexAdd Tabnine to your IDE (free)

How to use
RewriteValve
in
org.jboss.web.rewrite

Best Java code snippets using org.jboss.web.rewrite.RewriteValve (Showing top 12 results out of 315)

origin: org.jboss.web/jbossweb

/**
 * Find the configuration path where the rewrite configuration file
 * will be stored.
 * 
 * @param resourceName
 * @return
 */
protected String getHostConfigPath(String resourceName) {
  StringBuffer result = new StringBuffer();
  Container container = getContainer();
  Container host = null;
  Container engine = null;
  while (container != null) {
    if (container instanceof Host)
      host = container;
    if (container instanceof Engine)
      engine = container;
    container = container.getParent();
  }
  if (engine != null) {
    result.append(engine.getName()).append('/');
  }
  if (host != null) {
    result.append(host.getName()).append('/');
  }
  result.append(resourceName);
  return result.toString();
}
origin: jboss.web/jbossweb

public void setConfiguration(String configuration)
  throws Exception {
  maps.clear();
  parse(new BufferedReader(new StringReader(configuration)));
}

origin: jboss.web/jbossweb

if (getContainer() instanceof Context) {
  context = true;
  is = ((Context) getContainer()).getServletContext()
    .getResourceAsStream("/WEB-INF/" + resourcePath);
  if (container.getLogger().isDebugEnabled()) {
  String resourceName = getHostConfigPath(resourcePath);
  File file = new File(getConfigBase(), resourceName);
  try {
    if (!file.exists()) {
          " in " + getConfigBase() + " or in the classloader");
  parse(reader);
} finally {
  try {
origin: jboss.web/jbossweb

parseCondFlag(line, condition, flagsTokenizer.nextToken());
parseRuleFlag(line, rule, flagsTokenizer.nextToken());
origin: jboss.web/jbossweb

getNext().invoke(request, response);
return;
getNext().invoke(request, response);
invoked.set(null);
return;
  if (context && urlString.charAt(0) == '/' && !hasScheme(urlString)) {
    urlString.insert(0, request.getContext().getEncodedPath());
getNext().invoke(request, response);
origin: org.jboss.web/jbossweb

if (getContainer() instanceof Context) {
  context = true;
  is = ((Context) getContainer()).getServletContext()
    .getResourceAsStream("/WEB-INF/" + resourcePath);
  if (container.getLogger().isDebugEnabled()) {
  String resourceName = getHostConfigPath(resourcePath);
  File file = new File(getConfigBase(), resourceName);
  try {
    if (!file.exists()) {
          " in " + getConfigBase() + " or in the classloader");
  parse(reader);
} finally {
  try {
origin: org.jboss.web/jbossweb

parseCondFlag(line, condition, flagsTokenizer.nextToken());
parseRuleFlag(line, rule, flagsTokenizer.nextToken());
origin: org.jboss.web/jbossweb

getNext().invoke(request, response);
return;
getNext().invoke(request, response);
invoked.set(null);
return;
  if (context && urlString.charAt(0) == '/' && !hasScheme(urlString)) {
    urlString.insert(0, request.getContext().getEncodedPath());
getNext().invoke(request, response);
origin: org.jboss.web/jbossweb

public void setConfiguration(String configuration)
  throws Exception {
  maps.clear();
  parse(new BufferedReader(new StringReader(configuration)));
}

origin: jboss.web/jbossweb

/**
 * Find the configuration path where the rewrite configuration file
 * will be stored.
 * 
 * @param resourceName
 * @return
 */
protected String getHostConfigPath(String resourceName) {
  StringBuffer result = new StringBuffer();
  Container container = getContainer();
  Container host = null;
  Container engine = null;
  while (container != null) {
    if (container instanceof Host)
      host = container;
    if (container instanceof Engine)
      engine = container;
    container = container.getParent();
  }
  if (engine != null) {
    result.append(engine.getName()).append('/');
  }
  if (host != null) {
    result.append(host.getName()).append('/');
  }
  result.append(resourceName);
  return result.toString();
}
origin: jboss.web/jbossweb

  break;
Object result = parse(line);
if (result instanceof RewriteRule) {
  RewriteRule rule = (RewriteRule) result;
origin: org.jboss.web/jbossweb

  break;
Object result = parse(line);
if (result instanceof RewriteRule) {
  RewriteRule rule = (RewriteRule) result;
org.jboss.web.rewriteRewriteValve

Most used methods

  • getConfigBase
    Get config base.
  • getContainer
  • getHostConfigPath
    Find the configuration path where the rewrite configuration file will be stored.
  • getNext
  • hasScheme
    Determine if a URI string has a scheme component.
  • parse
    This factory method will parse a line formed like: Example: RewriteCond %{REMOTE_HOST} ^host1.* [OR]
  • parseCondFlag
    Parser for RewriteCond flags.
  • parseRuleFlag
    Parser for ReweriteRule flags.

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JTable (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Sublime Text plugins
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