com.esri.gpt.framework.http
Class StringProvider
java.lang.Object
com.esri.gpt.framework.http.ContentBase
com.esri.gpt.framework.http.ContentProvider
com.esri.gpt.framework.http.ByteArrayProvider
com.esri.gpt.framework.http.StringProvider
public class StringProvider
- extends ByteArrayProvider
String based provider for the content of an HTTP request body.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 bodycontentType
- the content type of the HTTP request body,
using null is not-recommended, only a MIME type is required e.g. text/xml
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)
Copyright 2011 Environmental Systems Research Institute.
All rights reserved.
Use is subject to
license terms.