com.sage.orion.sdata.servlet
Class SchemaResponse

java.lang.Object
  extended by com.sage.orion.sdata.servlet.SchemaResponse
All Implemented Interfaces:
ResourceResponse

public class SchemaResponse
extends java.lang.Object
implements ResourceResponse

Implementation of ResourceResponse where the payload is a schema


Constructor Summary
SchemaResponse(SDataSchema schema)
           
 
Method Summary
 void addToResponse(javax.servlet.http.HttpServletResponse response, java.lang.String resourcesURL, java.lang.String fullURL, SDataDiagnoses sdataDiagnoses)
           
 java.lang.String getCacheControl()
          Gets the caching control information to place in the response header for the "Cache-Control" (e.g.
 SDataResponseEntry getEntry()
          Gets the SDataResponseEntry.
 SDataResponseFeed getFeed()
          Gets the SDataResponseFeed.
 int getResponseCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaResponse

public SchemaResponse(SDataSchema schema)
Method Detail

getResponseCode

public int getResponseCode()
Specified by:
getResponseCode in interface ResourceResponse

addToResponse

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

getEntry

public SDataResponseEntry getEntry()
Description copied from interface: ResourceResponse
Gets the SDataResponseEntry.

Specified by:
getEntry in interface ResourceResponse

getFeed

public SDataResponseFeed getFeed()
Description copied from interface: ResourceResponse
Gets the SDataResponseFeed.

Specified by:
getFeed in interface ResourceResponse

getCacheControl

public java.lang.String getCacheControl()
Description copied from interface: ResourceResponse
Gets the caching control information to place in the response header for the "Cache-Control" (e.g. "no-cache" to specify not to have the browser cache this response)

Specified by:
getCacheControl in interface ResourceResponse
Returns:
the caching control information to place in the response header for the "Cache-Control" (e.g. "no-cache" to specify not to have the browser cache this response)


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