com.sage.orion.sdata.servlet
Class SDataExternalResponse

java.lang.Object
  extended by com.sage.orion.sdata.servlet.SDataExternalResponse
All Implemented Interfaces:
SDataResponse

public class SDataExternalResponse
extends java.lang.Object
implements SDataResponse

Class to get the response for the external request


Constructor Summary
SDataExternalResponse(int responseCode, org.w3c.dom.Document document)
          construct an external response
 
Method Summary
 void addToResponse(javax.servlet.http.HttpServletResponse response, java.lang.String resourcesURL, java.lang.String fullURL, SDataDiagnoses sdataDiagnoses)
           
 SDataDiagnoses getDiagnoses()
          return the diagnoses within the response
 SDataResponseEntry getEntry()
          return the entry within the response
 SDataResponseFeed getFeed()
          return the feed within the response
 int getResponseCode()
          returns the SData response code
 SDataSchema getSchema()
          return the schema within the response
 SDataTracking getTracking()
          return the tracking within the response
 boolean isDiagnoses()
          returns true if the response is an SDataDiagnoses document (only)
 boolean isTracking()
          returns true if the response is an SDataTracking
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDataExternalResponse

public SDataExternalResponse(int responseCode,
                             org.w3c.dom.Document document)
construct an external response

Parameters:
responseCode - HTTP status code
document - Response from the server
Method Detail

addToResponse

public void addToResponse(javax.servlet.http.HttpServletResponse response,
                          java.lang.String resourcesURL,
                          java.lang.String fullURL,
                          SDataDiagnoses sdataDiagnoses)
Specified by:
addToResponse in interface SDataResponse

getEntry

public SDataResponseEntry getEntry()
Description copied from interface: SDataResponse
return the entry within the response

Specified by:
getEntry in interface SDataResponse

getFeed

public SDataResponseFeed getFeed()
Description copied from interface: SDataResponse
return the feed within the response

Specified by:
getFeed in interface SDataResponse

getDiagnoses

public SDataDiagnoses getDiagnoses()
Description copied from interface: SDataResponse
return the diagnoses within the response

Specified by:
getDiagnoses in interface SDataResponse

getResponseCode

public int getResponseCode()
Description copied from interface: SDataResponse
returns the SData response code

Specified by:
getResponseCode in interface SDataResponse

getSchema

public SDataSchema getSchema()
Description copied from interface: SDataResponse
return the schema within the response

Specified by:
getSchema in interface SDataResponse

getTracking

public SDataTracking getTracking()
Description copied from interface: SDataResponse
return the tracking within the response

Specified by:
getTracking in interface SDataResponse

isDiagnoses

public boolean isDiagnoses()
Description copied from interface: SDataResponse
returns true if the response is an SDataDiagnoses document (only)

Specified by:
isDiagnoses in interface SDataResponse

isTracking

public boolean isTracking()
Description copied from interface: SDataResponse
returns true if the response is an SDataTracking

Specified by:
isTracking in interface SDataResponse


Copyright © 2011 Sage Software, Inc. All rights reserved.