|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.server.assertion.components.AsnResponse
public class AsnResponse
Represents an assertion operation response.
Constructor Summary | |
---|---|
AsnResponse()
Default constructor |
Method Summary | |
---|---|
void |
exceptionToResponse(AsnContext context,
Exception e)
Generates an exception based operation response. |
void |
generateFailedResponse(AsnContext context,
String message)
Generates a failed operation response. |
void |
generateOkResponse(AsnContext context,
String message)
Generates an OK operation response. |
void |
generateResponse(AsnContext context,
AsnProperties body)
Generates an operation response. |
void |
generateResponse(AsnContext context,
AsnProperty body)
Generates an operation response. |
String |
getMimeType()
Gets the HTTP response MIME type. |
String |
getOutputFormat()
Gets the output format. |
AsnProperty |
getResponseProperty()
Gets the root property for the response. |
String |
getResponseString()
Gets the response string. |
void |
propertyToResponseString()
Generates a response string from the active response property |
void |
setOutputFormat(String outputFormat)
Sets the HTTP output format (MIME type). |
void |
setResponseProperty(AsnProperty responseProperty)
Sets the root property for the response. |
void |
setResponseString(String response)
Sets the response string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsnResponse()
Method Detail |
---|
public String getMimeType()
public String getOutputFormat()
public void setOutputFormat(String outputFormat)
outputFormat
- the output formatpublic AsnProperty getResponseProperty()
public void setResponseProperty(AsnProperty responseProperty)
responseProperty
- the root response propertypublic String getResponseString()
public void setResponseString(String response)
response
- the response stringpublic void exceptionToResponse(AsnContext context, Exception e) throws IOException
context
- the assertion operation contexte
- the exception
IOException
- if an I/O exception occurspublic void generateFailedResponse(AsnContext context, String message) throws IOException
context
- the assertion operation contextmessage
- the message (RDF value, can be null)
IOException
- if an I/O exception occurspublic void generateOkResponse(AsnContext context, String message) throws IOException
context
- the assertion operation contextmessage
- the message (RDF value, can be null)
IOException
- if an I/O exception occurspublic void generateResponse(AsnContext context, AsnProperty body) throws IOException
context
- the assertion operation contextbody
- a property representing the body of the response
IOException
- if an I/O exception occurspublic void generateResponse(AsnContext context, AsnProperties body) throws IOException
context
- the assertion operation contextbody
- a properties representing the body of the response
IOException
- if an I/O exception occurspublic void propertyToResponseString() throws IOException
IOException
- if an I/O exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |