Examples of IRewriteErrorHandler


Examples of net.sourceforge.urlrewriter4j.core.errors.IRewriteErrorHandler

 
  protected void handleError(RewriteContext pContext, IContextFacade pContextFacade) throws RewriteException {
     // Return the status code.
    pContextFacade.setStatusCode(pContext.getHttpStatusCode());
    // Get the error handler if there is one.
    IRewriteErrorHandler oHandler = mConfiguration.getErrorHandlers().get(pContext.getHttpStatusCode());
    if (oHandler != null) {
      try {
        //_configuration.Logger.Debug(MessageProvider.FormatString(Message.CallingErrorHandler));

        // Execute the error handler.
View Full Code Here

Examples of net.sourceforge.urlrewriter4j.core.errors.IRewriteErrorHandler

    Node oClassNode = pNode.getAttributes().getNamedItem(Constants.ATTR_TYPE);
    Node oUrlNode = pNode.getAttributes().getNamedItem(Constants.ATTR_URL);
    if (oClassNode == null && oUrlNode == null) {
      throw new ConfigurationException(String.format(Messages.ATTRIBUTE_REQUIRED, Constants.ATTR_URL));
    }
    IRewriteErrorHandler oHandler = null;
    try {
      if (oClassNode != null) {
        //Class oClass = Class.forName(oClassNode.getNodeValue());
        //oHandler = (IRewriteErrorHandler) oClass.newInstance();
        oHandler = pConfig.getBeanFactory().newInstance(IRewriteErrorHandler.class, oClassNode.getNodeValue());
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.