Esri Geoportal Server
1.0

com.esri.gpt.framework.http
Class StringProvider

java.lang.Object
  extended by com.esri.gpt.framework.http.ContentBase
      extended by com.esri.gpt.framework.http.ContentProvider
          extended by com.esri.gpt.framework.http.ByteArrayProvider
              extended by com.esri.gpt.framework.http.StringProvider

public class StringProvider
extends ByteArrayProvider

String based provider for the content of an HTTP request body.


Constructor Summary
StringProvider(String content, String contentType)
          Constructs with a content String and a content type.
 
Method Summary
 String getLoggableContent()
          Gets the content associated with the HTTP request suitable for logging.
 
Methods inherited from class com.esri.gpt.framework.http.ByteArrayProvider
getContentLength, getContentType, isRepeatable, writeRequest
 
Methods inherited from class com.esri.gpt.framework.http.ContentProvider
asBytes, ensureContentTypeEncoding, prepareForWrite
 
Methods inherited from class com.esri.gpt.framework.http.ContentBase
executeIO, executeIO, getInitialBufferlength, setInitialBufferLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringProvider

public StringProvider(String content,
                      String contentType)
Constructs with a content String and a content type.

Parameters:
content - the String providing the content for the HTTP request body
contentType - the content type of the HTTP request body, using null is not-recommended, only a MIME type is required e.g. text/xml
Method Detail

getLoggableContent

public String getLoggableContent()
Gets the content associated with the HTTP request suitable for logging.

Overrides:
getLoggableContent in class ContentBase
Returns:
the loggable string (null if not applicable)

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.