org.whitesource.agent.api.dispatch
Interface ServiceRequest<R>

Type Parameters:
R - Result type
All Superinterfaces:
Serializable
All Known Implementing Classes:
BaseRequest, CheckPoliciesRequest, PropertiesRequest, ReportRequest, UpdateInventoryRequest

public interface ServiceRequest<R>
extends Serializable

The interface describe the functionality to be exposed by any request to the WhiteSource service.

Author:
Edo.Shor

Method Summary
 String agent()
           
 String agentVersion()
           
 String orgToken()
           
 long timeStamp()
           
 RequestType type()
           
 

Method Detail

type

RequestType type()
Returns:
Request type.

agent

String agent()
Returns:
Agent type identifier.

agentVersion

String agentVersion()
Returns:
Agent version.

orgToken

String orgToken()
Returns:
WhiteSource service token for the organization.

timeStamp

long timeStamp()
Returns:
Time stamp when the request created (client side)


Copyright © 2011-2012 White Source. All Rights Reserved.