public class EngineServiceOuterProxy extends java.lang.Object implements IEngineService, java.io.Serializable
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 and Description |
---|
EngineServiceOuterProxy(java.lang.String serviceName) |
Modifier and Type | Method and Description |
---|---|
ILink |
getLink(boolean post,
java.lang.Object parameter)
Builds a URL for a service.
|
java.lang.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. |
java.lang.String |
toString() |
public EngineServiceOuterProxy(java.lang.String serviceName)
public ILink getLink(boolean post, java.lang.Object parameter)
IEngineService
This method changed incompatibly between release 3.0 and release 4.0.
getLink
in interface IEngineService
post
- 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 java.io.IOException
IEngineService
HttpServletRequest
) responding appropriately, and rendering a
result page.service
in interface IEngineService
cycle
- the incoming requestjava.io.IOException
org.apache.tapestry.IEngine#service(org.apache.tapestry.request.RequestContext)
public java.lang.String getName()
IEngineService
getName
in interface IEngineService
public java.lang.String toString()
toString
in class java.lang.Object