com.atlassian.mywork.host.rest
Class ClientResource
java.lang.Object
com.atlassian.mywork.host.rest.ClientResource
public class ClientResource
- extends java.lang.Object
Stable endpoint for clients that need to register or ping the host.
|
Method Summary |
javax.ws.rs.core.Response |
clientPong(javax.servlet.http.HttpServletRequest request,
java.lang.String appId)
Registers a successful round-trip for user authentication. |
javax.ws.rs.core.Response |
clientRegistration(java.lang.String appId)
Updates the registration of the given client id. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientResource
public ClientResource(ClientService clientService,
com.atlassian.sal.api.user.UserManager userManager)
clientRegistration
public javax.ws.rs.core.Response clientRegistration(java.lang.String appId)
- Updates the registration of the given client id.
This will trigger a call to the client registration endpoint which is then stored on the host.
clientPong
public javax.ws.rs.core.Response clientPong(@Context
javax.servlet.http.HttpServletRequest request,
java.lang.String appId)
- Registers a successful round-trip for user authentication.
- Parameters:
appId - The applicationLinkId of the connecting instance.
Copyright © 2012 Atlassian. All Rights Reserved.