- All Implemented Interfaces:
Subject
The RealSubject performs the actual work of handling requests.
-
Constructor Summary
Constructors
Default constructor for RealSubject.
-
Method Summary
void
Handles the request and simulates actual processing.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
RealSubject
public RealSubject()
Default constructor for RealSubject.
-
Method Details
-
request
public void request(String resource)
Handles the request and simulates actual processing.
- Specified by:
request in interface Subject
- Parameters:
resource - The resource being accessed.