api-servlet/src/main/java/org/ocpsoft/rewrite/servlet/event/BaseRewrite.java
@Override
   public Context getRewriteContext()
   {
      if (this.context == null)
      {
         Context context = (Context) request.getAttribute(RewriteLifecycleContext.LIFECYCLE_CONTEXT_KEY);
         if (context == null)
         {
            throw new RewriteException("RewriteContext was null. Something is seriously wrong, " +
                     "or you are attempting to access this event outside of the Rewrite lifecycle.");
         }
         this.context = context;
      }
      return this.context;
   }
@Override
   public Context getRewriteContext()
   {
      if (this.context == null)
      {
         Context context = (Context) request.getAttribute(RewriteLifecycleContext.LIFECYCLE_CONTEXT_KEY);
         if (context == null)
         {
            throw new RewriteException("RewriteContext was null. Something is seriously wrong, " +
                     "or you are attempting to access this event outside of the Rewrite lifecycle.");
         }
         this.context = context;
      }
      return this.context;
   }
@ Override public Context getRewriteContext ( ) { if ( this . context == null ) { Context context = ( Context ) request . getAttribute ( RewriteLifecycleContext . LIFECYCLE_CONTEXT_KEY ) ; if ( context == null ) { throw new RewriteException ( "RewriteContext was null. Something is seriously wrong, " + "or you are attempting to access this event outside of the Rewrite lifecycle." ) ; } this . context = context ; } return this . context ; }
Get the {@link org.ocpsoft.rewrite.context.Context} for the current {@link org.ocpsoft.rewrite.event.Rewrite}.
Get the {