com.bea.wsrp.resource
Class DefaultRewritableResourceURLStrategy

java.lang.Object
  extended by com.bea.wsrp.resource.DefaultRewritableResourceURLStrategy
All Implemented Interfaces
IRewritableResourceUrlStrategy

public class DefaultRewritableResourceURLStrategy
extends Object
implements IRewritableResourceUrlStrategy


Constructor Summary
DefaultRewritableResourceURLStrategy()
           
 
Method Summary
 RewritableResourceURLContext createRewritableResourceURLContext(String url, String resourceID, String servedResourceParams)
          Called whenever a resource URL is created.
 void destroy()
          Called when this is destroyed
 void init(javax.servlet.ServletContext servletContext, boolean isProducer)
          Called when this is initialized
protected  boolean isGetResourceOperation(String url, String resourceID)
           
protected  int lastIndexOfUnsafePathChar(String path)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRewritableResourceURLStrategy

public DefaultRewritableResourceURLStrategy()
Method Detail

createRewritableResourceURLContext

public RewritableResourceURLContext createRewritableResourceURLContext(String url,
                                                                       String resourceID,
                                                                       String servedResourceParams)
Description copied from interface: IRewritableResourceUrlStrategy
Called whenever a resource URL is created.

Specified by:
createRewritableResourceURLContext in interface IRewritableResourceUrlStrategy
Parameters
url - The resource's URL or null if a served resource
resourceID - the resource's ID if get resource (may be null).
servedResourceParams - any query parameters added to a served resource URL (in www-url-form-encoded format) or null;
Returns
A new RewritableResourceURLContext.

isGetResourceOperation

protected boolean isGetResourceOperation(String url,
                                         String resourceID)

destroy

public void destroy()
Description copied from interface: IRewritableResourceUrlStrategy
Called when this is destroyed

Specified by:
destroy in interface IRewritableResourceUrlStrategy

init

public void init(javax.servlet.ServletContext servletContext,
                 boolean isProducer)
Description copied from interface: IRewritableResourceUrlStrategy
Called when this is initialized

Specified by:
init in interface IRewritableResourceUrlStrategy
Parameters
servletContext - the servlet context
isProducer - true when this is being run on the produccer

lastIndexOfUnsafePathChar

protected int lastIndexOfUnsafePathChar(String path)

main

public static void main(String[] args)


Copyright © 2011, Oracle. All rights reserved.