com.bea.wlp.rest.command
Class AlwaysDisabled

java.lang.Object
  extended by com.bea.wlp.rest.command.AlwaysDisabled
All Implemented Interfaces
MethodPermission

public class AlwaysDisabled
extends Object
implements MethodPermission

MethodPermission implementation that always returns false, for configuring RestCommands that are always unconditionally disabled.


Constructor Summary
AlwaysDisabled()
           
 
Method Summary
 boolean isEnabled(RestContext restContext)
          Always returns false to disable a RestCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlwaysDisabled

public AlwaysDisabled()
Method Detail

isEnabled

public boolean isEnabled(RestContext restContext)
Always returns false to disable a RestCommand

Specified by:
isEnabled in interface MethodPermission
Parameters
restContext - the incoming RestContext
Returns
false


Copyright © 2011, Oracle. All rights reserved.