|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.services.impl.EngineServiceOuterProxy
public class EngineServiceOuterProxy
Outer proxy for engine services. The inner proxy resolves the engine service name to a engine
service implementation and installed it into the outer proxy as a delegate. Although HiveMind
does provide a similar system of inner and outer delegates, Tapestry's engine-service:
EngineServiceObjectProvider object provider can
cause exceptions (recurive service build) when attempting to link two services together. This
extra layer of proxying resolves that issue.
| Constructor Summary | |
|---|---|
EngineServiceOuterProxy(String serviceName)
|
|
| Method Summary | |
|---|---|
ILink |
getLink(boolean post,
Object parameter)
Builds a URL for a service. |
String |
getName()
Returns the name of the service. |
void |
service(IRequestCycle cycle)
Perform the service, interpreting the URL (from the HttpServletRequest) responding appropriately, and rendering a
result page. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EngineServiceOuterProxy(String serviceName)
| Method Detail |
|---|
public ILink getLink(boolean post,
Object parameter)
IEngineServiceThis method changed incompatibly between release 3.0 and release 4.0.
getLink in interface IEngineServicepost - if true, then the link will be used for a post (not a get, i.e., for a HTML form);
this may affect what information is encoded into the linkparameter - An object that provide any additional information needed by the service. Each
service implementation will expect that an object of the proper type be passed in.
In some cases, a simple String will do; in others, a specific object (possibly
implementing an interface) will be required.
HttpServletResponse.encodeURL(java.lang.String).
public void service(IRequestCycle cycle)
throws IOException
IEngineServiceHttpServletRequest) responding appropriately, and rendering a
result page.
service in interface IEngineServicecycle - the incoming request
IOExceptionpublic String getName()
IEngineService
getName in interface IEngineServicepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||