public class RobotsTxtResource extends Resource
| Constructor and Description |
|---|
RobotsTxtResource(String contents) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getContents() |
Map<String,String> |
getHttpHeaders()
Assumes an HTTP response - return the HTTP headers, not including the
HTTP Message header
|
long |
getRecordLength() |
int |
getStatusCode()
Assumes an HTTP resource - return the HTTP response code
|
available, getHeader, getRefersToDate, getRefersToTargetURI, mark, markSupported, parseHeaders, read, read, read, reset, setChunkedEncoding, setInputStream, skipprotected String contents
public RobotsTxtResource(String contents)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ResourceIOExceptionpublic int getStatusCode()
ResourcegetStatusCode in class Resourcepublic long getRecordLength()
getRecordLength in class Resourcepublic Map<String,String> getHttpHeaders()
ResourcegetHttpHeaders in class Resourcepublic String getContents()
Copyright © 2005–2015 IIPC. All rights reserved.