diff --git a/src/com/google/enterprise/adaptor/AuthzStatus.java b/src/com/google/enterprise/adaptor/AuthzStatus.java index 26b20da4..93e28f70 100644 --- a/src/com/google/enterprise/adaptor/AuthzStatus.java +++ b/src/com/google/enterprise/adaptor/AuthzStatus.java @@ -23,9 +23,9 @@ public enum AuthzStatus { /** The authorization is explicitly forbidden. */ DENY("Access DENIED"), /** - * Permission is neither granted nor forbidden. If a consumer recieves this + * Permission is neither granted nor forbidden. If a consumer receives this * code it may decide to try other means to get an explicit decision (i.e., - * {@code PERMIT} or {@code DENY}. + * {@code PERMIT} or {@code DENY}). */ INDETERMINATE("No access decision"); diff --git a/src/com/google/enterprise/adaptor/DocIdSender.java b/src/com/google/enterprise/adaptor/DocIdSender.java index dbc4a2c4..460c58fd 100644 --- a/src/com/google/enterprise/adaptor/DocIdSender.java +++ b/src/com/google/enterprise/adaptor/DocIdSender.java @@ -78,7 +78,7 @@ public void pushFullDocIdsFromAdaptor(ExceptionHandler handler) keepGoing = handler.handleException(ex, ntries); } if (keepGoing) { - log.log(Level.INFO, "Trying again... Number of attemps: {0}", ntries); + log.log(Level.INFO, "Trying again... Number of attempts: {0}", ntries); } else { journal.recordFullPushFailed(); log.warning("Gave up. Failed getDocIds"); @@ -115,7 +115,7 @@ public void pushIncrementalDocIdsFromAdaptor(PollingIncrementalLister lister, keepGoing = handler.handleException(ex, ntries); } if (keepGoing) { - log.log(Level.INFO, "Trying again... Number of attemps: {0}", ntries); + log.log(Level.INFO, "Trying again... Number of attempts: {0}", ntries); } else { journal.recordIncrementalPushFailed(); log.warning("Gave up. Failed getModifiedDocIds"); @@ -332,7 +332,7 @@ public GroupPrincipal pushGroupDefinitions( keepGoing = handler.handleException(ex, ntries); } if (keepGoing) { - log.log(Level.INFO, "trying again... number of attemps: {0}", ntries); + log.log(Level.INFO, "trying again... number of attempts: {0}", ntries); } } GroupPrincipal last = null; @@ -369,7 +369,7 @@ private T pushSizedBatchOfItems(List items, keepGoing = handler.handleException(ex, ntries); } if (keepGoing) { - log.log(Level.INFO, "Trying again... Number of attemps: {0}", ntries); + log.log(Level.INFO, "Trying again... Number of attempts: {0}", ntries); } } if (success) { diff --git a/src/com/google/enterprise/adaptor/GsaCommunicationHandler.java b/src/com/google/enterprise/adaptor/GsaCommunicationHandler.java index 9d348f83..ba96ace1 100644 --- a/src/com/google/enterprise/adaptor/GsaCommunicationHandler.java +++ b/src/com/google/enterprise/adaptor/GsaCommunicationHandler.java @@ -504,7 +504,7 @@ static AclTransform createAclTransform(Map aclConfigRaw) { aclConfig.put(Integer.parseInt(me.getKey()), me.getValue()); } catch (NumberFormatException ex) { // Don't insert into map. - log.log(Level.FINE, "Ignorning transform.acl.{0} because {0} is not an " + log.log(Level.FINE, "Ignoring transform.acl.{0} because {0} is not an " + "integer", me.getKey()); } } diff --git a/src/com/google/enterprise/adaptor/GsaFeedFileSender.java b/src/com/google/enterprise/adaptor/GsaFeedFileSender.java index 8e94a568..a3d8d196 100644 --- a/src/com/google/enterprise/adaptor/GsaFeedFileSender.java +++ b/src/com/google/enterprise/adaptor/GsaFeedFileSender.java @@ -179,7 +179,7 @@ private void handleGsaReply(String reply, int responseCode) { if ("Success".equals(reply) || "success".equals(reply)) { log.info("success message received. code:" + responseCode); } else if ("Error - Unauthorized Request".equals(reply)) { - throw new IllegalStateException("Unathorized request. " + throw new IllegalStateException("Unauthorized request. " + "Perhaps add this machine's IP to GSA's Feeds' list " + "of trusted IP addresses. code:" + responseCode); } else { diff --git a/src/com/google/enterprise/adaptor/SamlIdentityProvider.java b/src/com/google/enterprise/adaptor/SamlIdentityProvider.java index c84d7db1..b1016e91 100644 --- a/src/com/google/enterprise/adaptor/SamlIdentityProvider.java +++ b/src/com/google/enterprise/adaptor/SamlIdentityProvider.java @@ -73,7 +73,7 @@ import java.util.logging.Logger; /** - * Provides ability to recieve and respond to SAML authn requests. + * Provides ability to receive and respond to SAML authn requests. * *

This functions as the Identity Provider (IdP) role in SAML. An IdP * authenticates users when requested by a Service Provider (SP) and sends the diff --git a/src/com/google/enterprise/adaptor/experimental/MetadataExplorer.java b/src/com/google/enterprise/adaptor/experimental/MetadataExplorer.java index 0c6a3e98..541b357b 100644 --- a/src/com/google/enterprise/adaptor/experimental/MetadataExplorer.java +++ b/src/com/google/enterprise/adaptor/experimental/MetadataExplorer.java @@ -143,7 +143,7 @@ public void getDocIds(DocIdPusher pusher) throws InterruptedException { /** * Gives the bytes of a document referenced with id. - * Includes "Retriever Metadata" and "Interal Metadata" elements. + * Includes "Retriever Metadata" and "Internal Metadata" elements. */ @Override public void getDocContent(Request req, Response resp) throws IOException { diff --git a/src/com/google/enterprise/adaptor/prebuilt/CommandLineAdaptor.java b/src/com/google/enterprise/adaptor/prebuilt/CommandLineAdaptor.java index 25855a40..a0c13074 100644 --- a/src/com/google/enterprise/adaptor/prebuilt/CommandLineAdaptor.java +++ b/src/com/google/enterprise/adaptor/prebuilt/CommandLineAdaptor.java @@ -184,7 +184,7 @@ public void sink(InputStream in) throws IOException { log.finest("Command: " + Arrays.asList(commandLine)); commandResult = executeRetriever(commandLine, null, stdin, stderr); } catch (InterruptedException e) { - throw new IOException("Thread intrupted while waiting for external command.", e); + throw new IOException("Thread interrupted while waiting for external command.", e); } catch (IOException e) { throw new IOException("External command could not be executed.", e); } diff --git a/src/com/google/enterprise/adaptor/secmgr/saml/HTTPSOAP11MultiContextDecoder.java b/src/com/google/enterprise/adaptor/secmgr/saml/HTTPSOAP11MultiContextDecoder.java index a3ab464a..3816f756 100644 --- a/src/com/google/enterprise/adaptor/secmgr/saml/HTTPSOAP11MultiContextDecoder.java +++ b/src/com/google/enterprise/adaptor/secmgr/saml/HTTPSOAP11MultiContextDecoder.java @@ -131,7 +131,7 @@ protected void doDecode(MessageContext messageContext) throws MessageDecodingExc if (!(incomingMessage instanceof SAMLObject)) { throw new MessageDecodingException( - "Unexpected SOAP body content. Expected a SAML request but recieved " + "Unexpected SOAP body content. Expected a SAML request but received " + incomingMessage.getElementQName()); } SAMLObject samlMessage = (SAMLObject) incomingMessage;