|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrestart.server.Service
public class Service
| Constructor Summary | |
|---|---|
Service(Method authorizedMethod,
java.lang.String name)
Construct the Service with the default policy, the callback should be defined later |
|
Service(Method authorizedMethod,
java.lang.String name,
Callback cb)
Construct the Service with the default policy and the given callback |
|
Service(Method authorizedMethod,
java.lang.String name,
Callback cb,
ServicePolicy policy)
Construct the Service with the given callback and the given policy |
|
Service(Method authorizedMethod,
java.lang.String name,
ServicePolicy policy)
Construct the Service with the given policy, the callback should be defined later |
|
| Method Summary | |
|---|---|
boolean |
authorizeMethod(java.lang.String method)
|
Method |
getAuthorizedMethod()
|
java.lang.String |
getName()
Get the name (relative URL) of the service |
ServicePolicy |
getServicePolicy()
Get the policy. |
ServiceOutput |
invoke(ServiceInput data)
Don't call this method yourself : it's being called by the server thread |
void |
setAuthorizedMethod(Method authMethod)
|
void |
setCallback(Callback cb)
Set the callback of the service (the callback is called when the service is invoked) |
void |
setName(java.lang.String name)
Set the name (relative URL) of the service |
void |
setServicePolicy(ServicePolicy policy)
Set the policy. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Service(Method authorizedMethod,
java.lang.String name)
public Service(Method authorizedMethod,
java.lang.String name,
ServicePolicy policy)
public Service(Method authorizedMethod,
java.lang.String name,
Callback cb)
public Service(Method authorizedMethod,
java.lang.String name,
Callback cb,
ServicePolicy policy)
| Method Detail |
|---|
public void setName(java.lang.String name)
name - the name (relative URL) of the servicepublic java.lang.String getName()
public void setServicePolicy(ServicePolicy policy)
public ServicePolicy getServicePolicy()
public void setCallback(Callback cb)
cb -
public ServiceOutput invoke(ServiceInput data)
throws RestException
RestExceptionpublic Method getAuthorizedMethod()
public void setAuthorizedMethod(Method authMethod)
public boolean authorizeMethod(java.lang.String method)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||